An empty CSS min-width media query causes following media queries not to be applied on browser window resize
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox-esr78 | --- | unaffected |
| firefox81 | --- | wontfix |
| firefox82 | --- | verified |
| firefox83 | --- | verified |
People
(Reporter: ben, Assigned: emilio)
References
(Regression)
Details
(Keywords: regression)
Attachments
(2 files)
|
185 bytes,
text/html
|
Details | |
|
Bug 1669600 - Properly distinguish between empty children and no children in rule iterator. r=#style
47 bytes,
text/x-phabricator-request
|
jcristau
:
approval-mozilla-beta+
|
Details | Review |
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:81.0) Gecko/20100101 Firefox/81.0
Steps to reproduce:
Create an html page with a single <div> element and the following CSS styles:
div {background: #000; width: 50px; height: 50px; margin: auto;}
@media (min-width: 1200px) {}
@media (max-width: 767px) {div {float: left;}}
Actual results:
The <div> element remains central when the browser window is resized to be smaller than 768px.
Expected results:
The <div> element should be floated left when the browser window is resized to be smaller than 768px - this expected behaviour does occur when the empty "@media (min-width: 1200px) {}" media query is removed or populated with css rules
Updated•5 years ago
|
| Assignee | ||
Comment 1•5 years ago
|
||
Huh, this is an odd one.
| Assignee | ||
Comment 2•5 years ago
|
||
This was regressed by bug 1655751. Thanks for filing!
Updated•5 years ago
|
| Assignee | ||
Comment 3•5 years ago
|
||
So that skip_children(), which just pops the stack and is used by the
dynamic media query evaluation code, works as it should.
| Assignee | ||
Comment 4•5 years ago
|
||
Comment on attachment 9180091 [details]
Bug 1669600 - Properly distinguish between empty children and no children in rule iterator. r=#style
Beta/Release Uplift Approval Request
- User impact if declined: Correctness regression in 81 that might affect websites in the wild and would be nice to fix in 82.
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: No
- Needs manual test from QE?: Yes
- If yes, steps to reproduce: comment 0
- List of other uplifts needed: none
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Extremely simple fix.
- String changes made/needed: none
| Assignee | ||
Updated•5 years ago
|
Comment 5•5 years ago
|
||
Set release status flags based on info from the regressing bug 1655751
Updated•5 years ago
|
Comment 8•5 years ago
|
||
| bugherder | ||
Comment 10•5 years ago
|
||
Comment on attachment 9180091 [details]
Bug 1669600 - Properly distinguish between empty children and no children in rule iterator. r=#style
approved for 82.0b9
Updated•5 years ago
|
Comment 11•5 years ago
|
||
| bugherder uplift | ||
Updated•5 years ago
|
Comment 12•5 years ago
|
||
Issue reproduced in Nightly v83.0a1 from 07-10-2020 and confirmed fix on Nightly v83.0a1 from 10-10-2020 and Beta v82.0b9 on Windows 10 and Mac OS 10.15.
Updated•4 years ago
|
Description
•