Closed Bug 1651655 Opened 5 years ago Closed 5 years ago

Font size displayed incorrectly

Categories

(Core :: Layout: Text and Fonts, defect)

78 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 1636205

People

(Reporter: spam2012, Unassigned)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0

Steps to reproduce:

I noticed that the browser does not correctly display the 5th font size. I wrote a file where all font sizes are indicated and opened it in different browsers. Everywhere everything is shown correctly, except for Firefox.

Actual results:

The 5th font size is shown the same as the 6th.

Expected results:

The font should be displayed correctly. Due to an error, some sites may not display correctly, design spoils.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → CSS Parsing and Computation
Product: Firefox → Core

Thanks for the report! If you still have the testcase, could yout attach it by using the "Attach New File" button?

Severity: -- → S4
Component: CSS Parsing and Computation → Layout: Text and Fonts
Flags: needinfo?(spam2012)

Attached a test file.

Flags: needinfo?(spam2012)

Tell a newbie when you can expect a bug fix?

This appears to be an issue specific to the <font> tag; it does not happen (as far as I can see) with font sizes specified in CSS, which seem to behave as expected.

Note that the <font> tag is obsolete and not recommended for use; it has been deprecated since at least HTML 4.01, according to https://developer.mozilla.org/en-US/docs/Web/HTML/Element/font.

As such, this is unlikely to be considered a high priority, although if there is a simple fix I expect we'd be happy to take it.

Still, authors should not be using this tag; use CSS to control styling.

Status: UNCONFIRMED → NEW
Ever confirmed: true

Turns out this was a regression from bug 1635160 due to a typo in the patch there: in Font::set_font_size, it had

                KeywordSize::XLarge => structs::StyleFontSize::Xxlarge,
                KeywordSize::XXLarge => structs::StyleFontSize::Xxlarge,

Note the repeated Xxlarge on the right-hand side! The first one should have been Xlarge, obviously.

Fortunately, however, this code was removed by bug 1636205, so the problem is already fixed for Firefox 79.

Dup'ing this to the bug that fixed the issue (even though it didn't know it was doing so!)

Status: NEW → RESOLVED
Has Regression Range: --- → yes
Closed: 5 years ago
Keywords: regression
Regressed by: 1635160
Resolution: --- → DUPLICATE

This is a discovery for me that the <font> tag is out of date. I think that there are thousands of people like me. And sites written without using CSS even more. And all of them are now showing incorrectly, where the 5th font size is indicated. AutoCorrect cannot fix this and you will have to rewrite the code manually. This is a hell of a hassle. Since the site is not on CMS, but written manually.
Thank you for your message. I will study the relevant materials and I will refuse obsolete tags.
Forgive me again, I use a computer translator, so I do not completely understand everything. I correctly understood that in Firefox 79 this error will not be and I do not need to redo the site, but just wait for it to exit?

That's correct, in Firefox 79 this will be fixed.

Firefox 79 is due to be released around July 28th, but you can also try it before then if you install the Beta version (see https://www.mozilla.org/ru/firefox/channel/desktop/).

Thank you so much. Thank you.

Confirmation: with the release of Firefox 79, the bug no longer appears.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: