aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/meta/html
diff options
context:
space:
mode:
authorSimon Wülker <simon.wuelker@arcor.de>2025-02-25 12:56:36 +0100
committerGitHub <noreply@github.com>2025-02-25 11:56:36 +0000
commit754b117011b1e035fabbcaa9cd0797e3c9242c8c (patch)
tree265a7749857fc4f67ca80891a21524c1f4b7da7e /tests/wpt/meta/html
parentcceff779288dc25c507e782aac19b25decfbeb83 (diff)
downloadservo-754b117011b1e035fabbcaa9cd0797e3c9242c8c.tar.gz
servo-754b117011b1e035fabbcaa9cd0797e3c9242c8c.zip
Allow the `<details>` element to be opened and closed (#35261)
* Implement the <summary> element Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Implement UA shadow root for <details> Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Invalidate style when display is opened or closed Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Fix /_mozilla/mozilla/duplicated_scroll_ids.html This test previously assumed that <details> elements would not be rendered. Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Implement implicit summary elements Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Update WPT expectations Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Remove test for duplicated scroll IDs See https://github.com/servo/servo/pull/35261#discussion_r1969328725 for reasoning. Signed-off-by: Simon Wülker <simon.wuelker@arcor.de> * Use Iterator::find to find implicit summary element 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/html')
-rw-r--r--tests/wpt/meta/html/dom/elements/the-innertext-and-outertext-properties/getter.html.ini3
-rw-r--r--tests/wpt/meta/html/rendering/the-details-element/details-display.html.ini3
-rw-r--r--tests/wpt/meta/html/rendering/the-details-element/details-revert.html.ini2
-rw-r--r--tests/wpt/meta/html/rendering/the-details-element/details-summary-display-inline-001.html.ini2
-rw-r--r--tests/wpt/meta/html/rendering/the-details-element/details-summary-display-inline-002.html.ini2
-rw-r--r--tests/wpt/meta/html/rendering/the-details-element/summary-display-list-item-001.html.ini2
-rw-r--r--tests/wpt/meta/html/rendering/the-details-element/summary-text-decoration.html.ini2
-rw-r--r--tests/wpt/meta/html/semantics/interactive-elements/the-details-element/closed-details-layout-apis.tentative.html.ini3
-rw-r--r--tests/wpt/meta/html/semantics/interactive-elements/the-details-element/details-add-summary.html.ini2
9 files changed, 8 insertions, 13 deletions
diff --git a/tests/wpt/meta/html/dom/elements/the-innertext-and-outertext-properties/getter.html.ini b/tests/wpt/meta/html/dom/elements/the-innertext-and-outertext-properties/getter.html.ini
index 182d7e1d4c5..37d45a806a3 100644
--- a/tests/wpt/meta/html/dom/elements/the-innertext-and-outertext-properties/getter.html.ini
+++ b/tests/wpt/meta/html/dom/elements/the-innertext-and-outertext-properties/getter.html.ini
@@ -25,3 +25,6 @@
[::first-line styles applied ("<div class='first-line-uppercase'>abc")]
expected: FAIL
+
+ [opened <details> content shown ("<div><details open><summary>abc</summary>123")]
+ expected: FAIL
diff --git a/tests/wpt/meta/html/rendering/the-details-element/details-display.html.ini b/tests/wpt/meta/html/rendering/the-details-element/details-display.html.ini
index 31d0648af61..288a0776a08 100644
--- a/tests/wpt/meta/html/rendering/the-details-element/details-display.html.ini
+++ b/tests/wpt/meta/html/rendering/the-details-element/details-display.html.ini
@@ -1,6 +1,3 @@
[details-display.html]
- [default display of first summary child of details is list-item]
- expected: FAIL
-
[display of details element can be changed]
expected: FAIL
diff --git a/tests/wpt/meta/html/rendering/the-details-element/details-revert.html.ini b/tests/wpt/meta/html/rendering/the-details-element/details-revert.html.ini
deleted file mode 100644
index 261501482db..00000000000
--- a/tests/wpt/meta/html/rendering/the-details-element/details-revert.html.ini
+++ /dev/null
@@ -1,2 +0,0 @@
-[details-revert.html]
- expected: FAIL
diff --git a/tests/wpt/meta/html/rendering/the-details-element/details-summary-display-inline-001.html.ini b/tests/wpt/meta/html/rendering/the-details-element/details-summary-display-inline-001.html.ini
new file mode 100644
index 00000000000..595d38ebd04
--- /dev/null
+++ b/tests/wpt/meta/html/rendering/the-details-element/details-summary-display-inline-001.html.ini
@@ -0,0 +1,2 @@
+[details-summary-display-inline-001.html]
+ expected: FAIL
diff --git a/tests/wpt/meta/html/rendering/the-details-element/details-summary-display-inline-002.html.ini b/tests/wpt/meta/html/rendering/the-details-element/details-summary-display-inline-002.html.ini
deleted file mode 100644
index 70ac0b2409d..00000000000
--- a/tests/wpt/meta/html/rendering/the-details-element/details-summary-display-inline-002.html.ini
+++ /dev/null
@@ -1,2 +0,0 @@
-[details-summary-display-inline-002.html]
- expected: FAIL
diff --git a/tests/wpt/meta/html/rendering/the-details-element/summary-display-list-item-001.html.ini b/tests/wpt/meta/html/rendering/the-details-element/summary-display-list-item-001.html.ini
deleted file mode 100644
index 772c1a86fc2..00000000000
--- a/tests/wpt/meta/html/rendering/the-details-element/summary-display-list-item-001.html.ini
+++ /dev/null
@@ -1,2 +0,0 @@
-[summary-display-list-item-001.html]
- expected: FAIL
diff --git a/tests/wpt/meta/html/rendering/the-details-element/summary-text-decoration.html.ini b/tests/wpt/meta/html/rendering/the-details-element/summary-text-decoration.html.ini
deleted file mode 100644
index 1f62daa6741..00000000000
--- a/tests/wpt/meta/html/rendering/the-details-element/summary-text-decoration.html.ini
+++ /dev/null
@@ -1,2 +0,0 @@
-[summary-text-decoration.html]
- expected: FAIL
diff --git a/tests/wpt/meta/html/semantics/interactive-elements/the-details-element/closed-details-layout-apis.tentative.html.ini b/tests/wpt/meta/html/semantics/interactive-elements/the-details-element/closed-details-layout-apis.tentative.html.ini
new file mode 100644
index 00000000000..c09547dad07
--- /dev/null
+++ b/tests/wpt/meta/html/semantics/interactive-elements/the-details-element/closed-details-layout-apis.tentative.html.ini
@@ -0,0 +1,3 @@
+[closed-details-layout-apis.tentative.html]
+ [Verifies the layout results of elements inside a closed <details> based on the usage of content-visibility:hidden.]
+ expected: FAIL
diff --git a/tests/wpt/meta/html/semantics/interactive-elements/the-details-element/details-add-summary.html.ini b/tests/wpt/meta/html/semantics/interactive-elements/the-details-element/details-add-summary.html.ini
deleted file mode 100644
index 96c661de0e2..00000000000
--- a/tests/wpt/meta/html/semantics/interactive-elements/the-details-element/details-add-summary.html.ini
+++ /dev/null
@@ -1,2 +0,0 @@
-[details-add-summary.html]
- expected: FAIL