css grid position incorrect after class name change
Categories
(Core :: Layout: Grid, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox70 | --- | fixed |
People
(Reporter: James0x57, Assigned: MatsPalmgren_bugz)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0
Steps to reproduce:
https://jsfiddle.net/s9wbd7ro/
Have a grid with grid areas that have a relative position and a % based "left" offset.
Remove the class name that causes the offset.
Re-add the class name that causes the offset.
Actual results:
the grid areas move relative to the parent Containing Block instead of relative to the grid column. The effect in the demo provided is that they move much further to the right after toggling the class name.
Expected results:
the grid areas should return to the original position, using the grid column as the Containing Block for the % calculation.
Updated•5 years ago
|
Updated•5 years ago
|
Comment 1•5 years ago
|
||
I try to bisect w/ layout.css.grid.enabled=true, However, it seems not a regression.
Before the following range: green rectangles are not displayed.
After the range: I can reproduce the the problem.
FYI, The problem disappears after resize browser.
Comment 2•5 years ago
|
||
Thanks Alice, yeah then it's likely not to be a regression. Chances are that the RecomputePosition
optimization is not accounting for the grid containing block properly...
Assignee | ||
Comment 3•5 years ago
|
||
Assignee | ||
Comment 4•5 years ago
|
||
Pushed by mpalmgren@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e7511b57c48e Don't try to optimize position style changes for rel.pos. grid items. r=dholbert
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/18684 for changes under testing/web-platform/tests
Upstream web-platform-tests status checks passed, PR will merge once commit reaches central.
Comment 8•5 years ago
|
||
bugherder |
Upstream PR merged by moz-wptsync-bot
Description
•