Include non-shadowdom children of shadow hosts in style calculation (#34298)

* Include non-shadowdom children of shadow hosts in style calculation

This was previously causing crashes because the layout nodes
of those children would never be assigned style data by stylo.

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

* Update WPT expectations

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

---------

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
This commit is contained in:
Simon Wülker 2024-11-20 20:28:35 +01:00 committed by GitHub
parent 2889e934f5
commit f3ad078358
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
77 changed files with 284 additions and 96 deletions

View file

@ -1,2 +1,2 @@
[cancel-animation-shadow-slot-invalidation.html]
expected: CRASH
expected: TIMEOUT

View file

@ -1,2 +1,2 @@
[layer-slotted-rule.html]
expected: CRASH
expected: FAIL

View file

@ -1,2 +1,2 @@
[revert-layer-014.html]
expected: CRASH
expected: FAIL

View file

@ -1,2 +1,2 @@
[quotes-slot-scoping.html]
expected: CRASH
expected: PASS

View file

@ -1,2 +1,2 @@
[display-contents-shadow-dom-1.html]
expected: CRASH
expected: FAIL

View file

@ -1,2 +1,2 @@
[counter-list-item-slot-order.html]
expected: CRASH
expected: FAIL

View file

@ -1,2 +1,2 @@
[counter-slot-order-scoping.html]
expected: CRASH
expected: FAIL

View file

@ -1,2 +1,2 @@
[counter-slot-order.html]
expected: CRASH
expected: FAIL

View file

@ -1,2 +0,0 @@
[text-decoration-propagation-shadow.html]
expected: CRASH

View file

@ -1,2 +1,2 @@
[remove-slotted-with-whitespace-sibling.html]
expected: CRASH
expected: FAIL

View file

@ -1,5 +1,4 @@
[checkVisibility.html]
expected: CRASH
[checkVisibility on visibility:hidden element.]
expected: FAIL
@ -29,3 +28,18 @@
[checkVisibility on content-visibility:hidden element after forced layout update.]
expected: FAIL
[checkVisibility on element slotted in content-visibility: hidden shadow host.]
expected: FAIL
[checkVisibility on element slotted in display:none shadow host.]
expected: FAIL
[checkVisibility on display:contents element.]
expected: FAIL
[checkVisibility on element slotted in opacity: 0; shadow host.]
expected: FAIL
[checkVisibility on root element with content-visibility: hidden returns true.]
expected: FAIL

View file

@ -1,2 +0,0 @@
[insert-dir-rule-crash.html]
expected: CRASH

View file

@ -1,2 +0,0 @@
[insert-dir-rule-in-iframe-crash.html]
expected: CRASH

View file

@ -1,2 +1,2 @@
[focus-within-shadow-001.html]
expected: CRASH
expected: FAIL

View file

@ -1,2 +1,2 @@
[focus-within-shadow-002.html]
expected: CRASH
expected: FAIL

View file

@ -1,2 +1,2 @@
[focus-within-shadow-003.html]
expected: CRASH
expected: FAIL

View file

@ -1,2 +1,2 @@
[focus-within-shadow-004.html]
expected: CRASH
expected: FAIL

View file

@ -1,2 +1,2 @@
[focus-within-shadow-005.html]
expected: CRASH
expected: FAIL

View file

@ -1,2 +1,2 @@
[focus-within-shadow-006.html]
expected: CRASH
expected: FAIL

View file

@ -1,2 +1,2 @@
[lang-pseudo-class-across-shadow-boundaries.html]
expected: CRASH
expected: FAIL

View file

@ -1,2 +1,9 @@
[is-where-shadow.html]
expected: CRASH
[:is() inside :host()]
expected: FAIL
[:is() inside :host-context()]
expected: FAIL
[:is() inside ::slotted()]
expected: FAIL