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)
Core
CSS Parsing and Computation
Tracking
()
NEW
People
(Reporter: nchevobbe, Unassigned)
References
Details
Attachments
(1 file)
|
512 bytes,
text/html
|
Details |
Steps to reproduce
0. Set layout.css.custom-media.enabled to true
- Open attached test case
- Open RDM and set the viewport to 300px wide
- Reload the page
- Makes the RDM viewport 400px wide
- 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)
Comment 1•1 month ago
|
||
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
Updated•1 month ago
|
Severity: -- → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•