Open Bug 2011126 Opened 1 month ago Updated 1 month ago

Duplicated @custom-media extension-name causes inconsistent styling

Categories

(Core :: CSS Parsing and Computation, defect)

defect

Tracking

()

People

(Reporter: nchevobbe, Unassigned)

References

Details

Attachments

(1 file)

Attached file test_case.html

Steps to reproduce
0. Set layout.css.custom-media.enabled to true

  1. Open attached test case
  2. Open RDM and set the viewport to 300px wide
  3. Reload the page
  4. Makes the RDM viewport 400px wide
  5. Makes the RDM viewport 300px wide again

Actual results

After step 3. the @custom-media element background is transparent
After step 4. the @custom-media element background is hotpink
After step 5. the @custom-media element background is still hotpink

I would expect the background to be the same in step 3 and step 5 (always hotpink, as the last @custom-media declaration should override any previous declaration with the same extension name)

Ah, I think I know what's going wrong. Fwiw what supposed to happen is that the last rule never takes effect in this case. But it is incorrectly taking effect after a resize because we don't do a whole rebuild

Severity: -- → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: