[css-grid] Grandchild of grid container doesn't immediately become grid item when its parent gets "display:contents"
Categories
(Core :: CSS Parsing and Computation, defect, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox69 | --- | fixed |
People
(Reporter: Oriol, Assigned: emilio)
Details
Attachments
(2 files)
What steps will reproduce the problem?
- Create a grid container with a child and a grandchild
- Set
display: inlineto the grandchild - Force a style change event
- Set
display: contentsto the child
What is the expected result?
The grandchild becomes a grid item and is blockified
What happens instead?
The grandchild doesn't immediately become a grid item
In the attached testcase, the console should say
#test should be inline: inline
#wrapper should be contents: contents
#test should be blockified (immediately): block
#test should be blockified (after a while): block
The penultimate check fails in Firefox. This seems against https://drafts.csswg.org/css-transitions-1/#style-change-event
implementations must not use, present, or display something resulting from the CSS cascading, value computation, and inheritance process [CSS3CASCADE] without updating the computed value [...]. However, when an implementation updates the computed value of a property on an element to reflect one of these changes, [...] it must update the computed value for all properties and elements to reflect all of these changes at the same time (or at least it must be undetectable that it was done at a different time).
Chromium fails the two last checks: https://bugs.chromium.org/p/chromium/issues/detail?id=978419
| Assignee | ||
Comment 1•6 years ago
|
||
I see what's going wrong. Last one fails as well on a clean profile btw, do you have any extension installed that could cause a restyle on load?
| Assignee | ||
Comment 2•6 years ago
|
||
Since they can change whether descendants get blockified.
| Reporter | ||
Comment 3•6 years ago
|
||
(In reply to Emilio Cobos Álvarez (:emilio) from comment #1)
I see what's going wrong. Last one fails as well on a clean profile btw, do you have any extension installed that could cause a restyle on load?
Oh, true. It's caused by uBlock Origin
Comment 5•6 years ago
|
||
| bugherder | ||
Description
•