Container Query Condition Using Viewport-Relative Units Not Re-Evaluated When Viewport Size Changes
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox108 | --- | verified |
People
(Reporter: dshin, Assigned: emilio)
References
(Blocks 1 open bug)
Details
Attachments
(5 files)
STR: Load attached test case.
Expected: The small red div turns green after 1 second.
Actual: The small red div does not turn red, until inspecting the element, at which point it turns green.
Reporter | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
I have a good sense of how to best fix this.
Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
Reporter | ||
Updated•2 years ago
|
Assignee | ||
Comment 2•2 years ago
|
||
No behavior change but we're about to add some extra field to it.
Assignee | ||
Comment 3•2 years ago
|
||
No behavior change, but it makes more sense this way :)
Depends on D159850
Assignee | ||
Comment 4•2 years ago
|
||
This allows us to propagate flags from the container query styles all the
way to the computed style of the element.
The flag for viewport units in container queries has to be different
because it requires rematching, see comments.
Depends on D159851
Assignee | ||
Comment 5•2 years ago
|
||
By re-selector-matching the element (thus re-evaluating the container
query condition).
Depends on D159852
Assignee | ||
Updated•2 years ago
|
Comment 8•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/1be0d212745c
https://hg.mozilla.org/mozilla-central/rev/7d531d105e7d
https://hg.mozilla.org/mozilla-central/rev/fd529aed43a1
https://hg.mozilla.org/mozilla-central/rev/cc47d7350b4b
Updated•2 years ago
|
Comment 9•2 years ago
|
||
Reproduced the issue with Firefox 106.0a1 (20220913213020) and layout.css.container-queries.enabled:true
using the attached test case from comment 0 on Windows 10x64.
The issue is verified fixed with Firefox 108.0b2 on Windows 10x64, macOS 11, and Ubuntu 20.04 while having the layout.css.container-queries.enabled:true
. The small red div turns green after the iframe resizes.
Description
•