diff options
author | Simon Wülker <simon.wuelker@arcor.de> | 2025-02-02 21:49:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-02 20:49:42 +0000 |
commit | 6a2e37183c1995aa7c4bc31dfd8e871f28dcbae7 (patch) | |
tree | 821cb8ea46526f14278a14941dcc289383b46d3b /tests/wpt/meta/shadow-dom | |
parent | 938baf6bf36336d812277b0bc056d1a614c472cc (diff) | |
download | servo-6a2e37183c1995aa7c4bc31dfd8e871f28dcbae7.tar.gz servo-6a2e37183c1995aa7c4bc31dfd8e871f28dcbae7.zip |
Lay out the contents of slot elements (#35220)
* Make Slottable match layout/alignment of NonNull<Node>
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
* Implement ServoLayoutElement::slotted_nodes
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
* Bump mozjs
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
* Layout the contents of slot elements
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
* Implement ServoLayoutElement::assigned_slot
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
* implement ServoLayoutElement::traversal_parent
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
* Simplify slottable name update
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
* Don't iterate over children of shadow hosts
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
* Recompute slot style when contents change
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
* Change match_slottable to a function instead of a macro
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
* Fix crown errors
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
* Update WPT expectations
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
* Reset a slottable's assigned slot when it's removed from the slot
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
---------
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
Diffstat (limited to 'tests/wpt/meta/shadow-dom')
10 files changed, 2 insertions, 23 deletions
diff --git a/tests/wpt/meta/shadow-dom/DocumentOrShadowRoot-prototype-elementFromPoint.html.ini b/tests/wpt/meta/shadow-dom/DocumentOrShadowRoot-prototype-elementFromPoint.html.ini index d462e9daaec..3cc32e416f7 100644 --- a/tests/wpt/meta/shadow-dom/DocumentOrShadowRoot-prototype-elementFromPoint.html.ini +++ b/tests/wpt/meta/shadow-dom/DocumentOrShadowRoot-prototype-elementFromPoint.html.ini @@ -1,7 +1,4 @@ [DocumentOrShadowRoot-prototype-elementFromPoint.html] - [document.elementFromPoint and shadowRoot.elementFromPoint must return the shadow host when the hit-tested text node is assigned to a slot and the host has display: inline] - expected: FAIL - [document.elementFromPoint and shadowRoot.elementFromPoint must return the element assigned to a slot when hit-tested text node under an element is assigned to a slot in the shadow tree and the shadow host of the slot has display: block] expected: FAIL diff --git a/tests/wpt/meta/shadow-dom/focus/focus-pseudo-on-shadow-host-2.html.ini b/tests/wpt/meta/shadow-dom/focus/focus-pseudo-on-shadow-host-2.html.ini new file mode 100644 index 00000000000..808653f1453 --- /dev/null +++ b/tests/wpt/meta/shadow-dom/focus/focus-pseudo-on-shadow-host-2.html.ini @@ -0,0 +1,2 @@ +[focus-pseudo-on-shadow-host-2.html] + expected: FAIL diff --git a/tests/wpt/meta/shadow-dom/imperative-slot-fallback-clear.html.ini b/tests/wpt/meta/shadow-dom/imperative-slot-fallback-clear.html.ini deleted file mode 100644 index 2fec56352db..00000000000 --- a/tests/wpt/meta/shadow-dom/imperative-slot-fallback-clear.html.ini +++ /dev/null @@ -1,6 +0,0 @@ -[imperative-slot-fallback-clear.html] - [Text node fallback should be cleared in a subsequently layout] - expected: FAIL - - [Element fallback should be cleared in a subsequent layout] - expected: FAIL diff --git a/tests/wpt/meta/shadow-dom/imperative-slot-layout-invalidation-001.html.ini b/tests/wpt/meta/shadow-dom/imperative-slot-layout-invalidation-001.html.ini deleted file mode 100644 index 42aa5541510..00000000000 --- a/tests/wpt/meta/shadow-dom/imperative-slot-layout-invalidation-001.html.ini +++ /dev/null @@ -1,2 +0,0 @@ -[imperative-slot-layout-invalidation-001.html] - expected: FAIL diff --git a/tests/wpt/meta/shadow-dom/layout-slot-no-longer-fallback.html.ini b/tests/wpt/meta/shadow-dom/layout-slot-no-longer-fallback.html.ini deleted file mode 100644 index 0b6e3431ed9..00000000000 --- a/tests/wpt/meta/shadow-dom/layout-slot-no-longer-fallback.html.ini +++ /dev/null @@ -1,2 +0,0 @@ -[layout-slot-no-longer-fallback.html] - expected: FAIL diff --git a/tests/wpt/meta/shadow-dom/slot-fallback-content-001.html.ini b/tests/wpt/meta/shadow-dom/slot-fallback-content-001.html.ini deleted file mode 100644 index 99cfddb8bf3..00000000000 --- a/tests/wpt/meta/shadow-dom/slot-fallback-content-001.html.ini +++ /dev/null @@ -1,2 +0,0 @@ -[slot-fallback-content-001.html] - expected: FAIL diff --git a/tests/wpt/meta/shadow-dom/slot-fallback-content-002.html.ini b/tests/wpt/meta/shadow-dom/slot-fallback-content-002.html.ini deleted file mode 100644 index 2ec0637e458..00000000000 --- a/tests/wpt/meta/shadow-dom/slot-fallback-content-002.html.ini +++ /dev/null @@ -1,2 +0,0 @@ -[slot-fallback-content-002.html] - expected: FAIL diff --git a/tests/wpt/meta/shadow-dom/slot-fallback-content-007.html.ini b/tests/wpt/meta/shadow-dom/slot-fallback-content-007.html.ini deleted file mode 100644 index f25986dbaff..00000000000 --- a/tests/wpt/meta/shadow-dom/slot-fallback-content-007.html.ini +++ /dev/null @@ -1,2 +0,0 @@ -[slot-fallback-content-007.html] - expected: FAIL diff --git a/tests/wpt/meta/shadow-dom/untriaged/shadow-trees/reprojection/reprojection-001.html.ini b/tests/wpt/meta/shadow-dom/untriaged/shadow-trees/reprojection/reprojection-001.html.ini deleted file mode 100644 index e229960af83..00000000000 --- a/tests/wpt/meta/shadow-dom/untriaged/shadow-trees/reprojection/reprojection-001.html.ini +++ /dev/null @@ -1,2 +0,0 @@ -[reprojection-001.html] - expected: FAIL diff --git a/tests/wpt/meta/shadow-dom/untriaged/shadow-trees/shadow-root-002.html.ini b/tests/wpt/meta/shadow-dom/untriaged/shadow-trees/shadow-root-002.html.ini deleted file mode 100644 index 07a6ef6989e..00000000000 --- a/tests/wpt/meta/shadow-dom/untriaged/shadow-trees/shadow-root-002.html.ini +++ /dev/null @@ -1,2 +0,0 @@ -[shadow-root-002.html] - expected: FAIL |