Font size displayed incorrectly
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
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.
Comment 1•5 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Comment 2•5 years ago
|
||
Thanks for the report! If you still have the testcase, could yout attach it by using the "Attach New File" button?
Comment 5•5 years ago
•
|
||
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.
Comment 6•5 years ago
|
||
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!)
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?
Comment 8•5 years ago
|
||
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/).
Reporter | ||
Comment 10•5 years ago
|
||
Confirmation: with the release of Firefox 79, the bug no longer appears.
Description
•