Open Bug 1096003 Opened 11 years ago Updated 3 years ago

CSS not always processed the same way

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

People

(Reporter: jesper, Unassigned)

References

()

Details

Attachments

(3 files)

The CSS processor doesn't always see the rule font-size : 13; on line 83 in http://www.heroes.dk/inc/forum.css This results in the forum section headlines to occasionally be shown with bigger text The bug can't be triggered with refresh. It can however be triggered by going to the urlbar and pressing enter. (screenshots will follow)
Attached image font-size: 13; is seen
Attachment #8519518 - Attachment description: font-size: 13; it seen → font-size: 13; is seen
Thanks for the bug report, Jesper. I can't reproduce the issue myself with Firefox 33 on Windows 8.1. What version are you using? How many times do you need to refresh the page before you see the bug? The correct behaviour is for the |font-size: 13| rule to be dropped, since it needs a px unit on the end. If sometimes it is getting treated as 13px automatically, this is a bug.
I'm on Nightly, 36.0a1 (2014-11-07). Addons: Image in New Tab, Modify Headers, PasswordMaker and Session Manager. The Nightly hasn't been restarted since reporting this and it does appear to be behaving better. Not perfect, but better. I can't get it to bug with F5 refreshing, but visiting the page again--- I take that back, I could just now get it to happen after using Ctrl+r. Is there some part of the CSS processor that reacts to the font-size and tries to "fix" it, but doesn't cache that result.
Unitless lengths are allowed in a number of contexts in quirks mode, for certain properties. See https://quirks.spec.whatwg.org/#the-unitless-length-quirk
This page is in standards mode... Jesper, can you tell me what document.compatMode is for you when you see the two different renderings?
I see that it is showing as CSS1Compat in both cases. I added guide lines so I could actually tell the difference. Tho more noticeable on the when tabbing between the first two screenshots
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: