diff --git a/LayoutTests/fast/css/dir-pseudo-container-query-expected.html b/LayoutTests/fast/css/dir-pseudo-container-query-expected.html deleted file mode 100644 index d86fd234ca321..0000000000000 --- a/LayoutTests/fast/css/dir-pseudo-container-query-expected.html +++ /dev/null @@ -1,6 +0,0 @@ - - - -
- - diff --git a/LayoutTests/fast/css/dir-pseudo-container-query-invalidation-expected.html b/LayoutTests/fast/css/dir-pseudo-container-query-invalidation-expected.html deleted file mode 100644 index d86fd234ca321..0000000000000 --- a/LayoutTests/fast/css/dir-pseudo-container-query-invalidation-expected.html +++ /dev/null @@ -1,6 +0,0 @@ - - - -
- - diff --git a/LayoutTests/fast/css/lang-pseudo-container-query-document-element-invalidation-expected.html b/LayoutTests/fast/css/lang-pseudo-container-query-document-element-invalidation-expected.html deleted file mode 100644 index 23e48929c77c4..0000000000000 --- a/LayoutTests/fast/css/lang-pseudo-container-query-document-element-invalidation-expected.html +++ /dev/null @@ -1,6 +0,0 @@ - - - -
- - diff --git a/LayoutTests/fast/css/lang-pseudo-container-query-invalidation-expected.html b/LayoutTests/fast/css/lang-pseudo-container-query-invalidation-expected.html deleted file mode 100644 index 23e48929c77c4..0000000000000 --- a/LayoutTests/fast/css/lang-pseudo-container-query-invalidation-expected.html +++ /dev/null @@ -1,6 +0,0 @@ - - - -
- - diff --git a/LayoutTests/fast/css/lang-pseudo-container-query-invalidation-xhtml-expected.html b/LayoutTests/fast/css/lang-pseudo-container-query-invalidation-xhtml-expected.html deleted file mode 100644 index 23e48929c77c4..0000000000000 --- a/LayoutTests/fast/css/lang-pseudo-container-query-invalidation-xhtml-expected.html +++ /dev/null @@ -1,6 +0,0 @@ - - - -
- - diff --git a/LayoutTests/fast/css/lang-pseudo-container-query-multiple-document-elements-invalidation-expected.html b/LayoutTests/fast/css/lang-pseudo-container-query-multiple-document-elements-invalidation-expected.html deleted file mode 100644 index 23e48929c77c4..0000000000000 --- a/LayoutTests/fast/css/lang-pseudo-container-query-multiple-document-elements-invalidation-expected.html +++ /dev/null @@ -1,6 +0,0 @@ - - - -
- - diff --git a/LayoutTests/fast/css/lang-pseudo-disconnected-expected.txt b/LayoutTests/fast/css/lang-pseudo-disconnected-expected.txt deleted file mode 100644 index f89f1926d5d35..0000000000000 --- a/LayoutTests/fast/css/lang-pseudo-disconnected-expected.txt +++ /dev/null @@ -1,13 +0,0 @@ -:lang pseudo class should work in a disconnected subtree - -On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". - - -PASS target.matches(":lang(zh)") is true -PASS target.parentNode.remove(); target.matches(":lang(zh)") is true -PASS target.matches(":lang(fr)") is true -PASS document.body.append(target.parentNode); target.matches(":lang(fr)") is true -PASS successfullyParsed is true - -TEST COMPLETE - diff --git a/LayoutTests/fast/css/lang-pseudo-disconnected.html b/LayoutTests/fast/css/lang-pseudo-disconnected.html deleted file mode 100644 index 1ab85fa9fe2a4..0000000000000 --- a/LayoutTests/fast/css/lang-pseudo-disconnected.html +++ /dev/null @@ -1,20 +0,0 @@ - - - -
- - - - diff --git a/LayoutTests/fast/css/lang-selector-empty-attribute-expected.txt b/LayoutTests/fast/css/lang-selector-empty-attribute-expected.txt deleted file mode 100644 index 190e781f6957b..0000000000000 --- a/LayoutTests/fast/css/lang-selector-empty-attribute-expected.txt +++ /dev/null @@ -1,3 +0,0 @@ -Tests if empty language declarations are supported - -SUCCESS diff --git a/LayoutTests/fast/css/lang-selector-empty-attribute.xhtml b/LayoutTests/fast/css/lang-selector-empty-attribute.xhtml deleted file mode 100644 index b4bd38e460afc..0000000000000 --- a/LayoutTests/fast/css/lang-selector-empty-attribute.xhtml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - -

Tests if empty language declarations are supported

-

- - - -

-
- - diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/selectors/dir-pseudo-in-has-expected.xht b/LayoutTests/imported/w3c/web-platform-tests/css/selectors/dir-pseudo-in-has-expected.xht new file mode 100644 index 0000000000000..05a13794482a9 --- /dev/null +++ b/LayoutTests/imported/w3c/web-platform-tests/css/selectors/dir-pseudo-in-has-expected.xht @@ -0,0 +1,19 @@ + + + + CSS Reftest Reference + + + + +

Test passes if there is a filled green square and no red.

+
+ + diff --git a/LayoutTests/fast/css/dir-pseudo-container-query.html b/LayoutTests/imported/w3c/web-platform-tests/css/selectors/dir-pseudo-in-has.html similarity index 63% rename from LayoutTests/fast/css/dir-pseudo-container-query.html rename to LayoutTests/imported/w3c/web-platform-tests/css/selectors/dir-pseudo-in-has.html index 7538c974c3a20..3a3a0757a58b5 100644 --- a/LayoutTests/fast/css/dir-pseudo-container-query.html +++ b/LayoutTests/imported/w3c/web-platform-tests/css/selectors/dir-pseudo-in-has.html @@ -1,6 +1,13 @@ + + + + + + +

Test passes if there is a filled green square and no red.

diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/lang-pseudo-class-across-shadow-boundaries-expected.html b/LayoutTests/imported/w3c/web-platform-tests/css/selectors/i18n/lang-pseudo-class-across-shadow-boundaries-expected.html similarity index 100% rename from LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/lang-pseudo-class-across-shadow-boundaries-expected.html rename to LayoutTests/imported/w3c/web-platform-tests/css/selectors/i18n/lang-pseudo-class-across-shadow-boundaries-expected.html diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/lang-pseudo-class-across-shadow-boundaries-ref.html b/LayoutTests/imported/w3c/web-platform-tests/css/selectors/i18n/lang-pseudo-class-across-shadow-boundaries-ref.html similarity index 100% rename from LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/lang-pseudo-class-across-shadow-boundaries-ref.html rename to LayoutTests/imported/w3c/web-platform-tests/css/selectors/i18n/lang-pseudo-class-across-shadow-boundaries-ref.html diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/lang-pseudo-class-across-shadow-boundaries.html b/LayoutTests/imported/w3c/web-platform-tests/css/selectors/i18n/lang-pseudo-class-across-shadow-boundaries.html similarity index 100% rename from LayoutTests/imported/w3c/web-platform-tests/css/css-pseudo/lang-pseudo-class-across-shadow-boundaries.html rename to LayoutTests/imported/w3c/web-platform-tests/css/selectors/i18n/lang-pseudo-class-across-shadow-boundaries.html diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/selectors/i18n/lang-pseudo-class-disconnected-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/css/selectors/i18n/lang-pseudo-class-disconnected-expected.txt new file mode 100644 index 0000000000000..65f4167ed7976 --- /dev/null +++ b/LayoutTests/imported/w3c/web-platform-tests/css/selectors/i18n/lang-pseudo-class-disconnected-expected.txt @@ -0,0 +1,3 @@ + +PASS :lang pseudo class should work in a disconnected subtree + diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/selectors/i18n/lang-pseudo-class-disconnected.html b/LayoutTests/imported/w3c/web-platform-tests/css/selectors/i18n/lang-pseudo-class-disconnected.html new file mode 100644 index 0000000000000..30bb773a3184a --- /dev/null +++ b/LayoutTests/imported/w3c/web-platform-tests/css/selectors/i18n/lang-pseudo-class-disconnected.html @@ -0,0 +1,24 @@ + + + + +
+ + + + + diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/selectors/i18n/lang-pseudo-class-empty-attribute-expected.txt b/LayoutTests/imported/w3c/web-platform-tests/css/selectors/i18n/lang-pseudo-class-empty-attribute-expected.txt new file mode 100644 index 0000000000000..365fd2ee2e1ad --- /dev/null +++ b/LayoutTests/imported/w3c/web-platform-tests/css/selectors/i18n/lang-pseudo-class-empty-attribute-expected.txt @@ -0,0 +1,5 @@ +Tests if empty language declarations are supported + + +PASS Test if empty language attributes are supported + diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/selectors/i18n/lang-pseudo-class-empty-attribute.xhtml b/LayoutTests/imported/w3c/web-platform-tests/css/selectors/i18n/lang-pseudo-class-empty-attribute.xhtml new file mode 100644 index 0000000000000..5765e0bae18c5 --- /dev/null +++ b/LayoutTests/imported/w3c/web-platform-tests/css/selectors/i18n/lang-pseudo-class-empty-attribute.xhtml @@ -0,0 +1,26 @@ + + + + + + +

Tests if empty language declarations are supported

+

+ + + +

+ + + + + diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/dir-pseudo-class-in-has-expected.xht b/LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/dir-pseudo-class-in-has-expected.xht new file mode 100644 index 0000000000000..05a13794482a9 --- /dev/null +++ b/LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/dir-pseudo-class-in-has-expected.xht @@ -0,0 +1,19 @@ + + + + CSS Reftest Reference + + + + +

Test passes if there is a filled green square and no red.

+
+ + diff --git a/LayoutTests/fast/css/dir-pseudo-container-query-invalidation.html b/LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/dir-pseudo-class-in-has.html similarity index 72% rename from LayoutTests/fast/css/dir-pseudo-container-query-invalidation.html rename to LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/dir-pseudo-class-in-has.html index c3a6304966b19..0f5d0726567be 100644 --- a/LayoutTests/fast/css/dir-pseudo-container-query-invalidation.html +++ b/LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/dir-pseudo-class-in-has.html @@ -1,6 +1,13 @@ + + + + + + +

Test passes if there is a filled green square and no red.

diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/lang-pseudo-class-in-has-document-element-expected.xht b/LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/lang-pseudo-class-in-has-document-element-expected.xht new file mode 100644 index 0000000000000..05a13794482a9 --- /dev/null +++ b/LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/lang-pseudo-class-in-has-document-element-expected.xht @@ -0,0 +1,19 @@ + + + + CSS Reftest Reference + + + + +

Test passes if there is a filled green square and no red.

+
+ + diff --git a/LayoutTests/fast/css/lang-pseudo-container-query-document-element-invalidation.html b/LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/lang-pseudo-class-in-has-document-element.html similarity index 53% rename from LayoutTests/fast/css/lang-pseudo-container-query-document-element-invalidation.html rename to LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/lang-pseudo-class-in-has-document-element.html index 99533057df147..93ece465dd51c 100644 --- a/LayoutTests/fast/css/lang-pseudo-container-query-document-element-invalidation.html +++ b/LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/lang-pseudo-class-in-has-document-element.html @@ -1,9 +1,14 @@ - + + + + + +

Test passes if there is a filled green square and no red.

+ + +

Test passes if there is a filled green square and no red.

+
+ + diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/lang-pseudo-class-in-has-multiple-document-elements-expected.xht b/LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/lang-pseudo-class-in-has-multiple-document-elements-expected.xht new file mode 100644 index 0000000000000..05a13794482a9 --- /dev/null +++ b/LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/lang-pseudo-class-in-has-multiple-document-elements-expected.xht @@ -0,0 +1,19 @@ + + + + CSS Reftest Reference + + + + +

Test passes if there is a filled green square and no red.

+
+ + diff --git a/LayoutTests/fast/css/lang-pseudo-container-query-multiple-document-elements-invalidation.html b/LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/lang-pseudo-class-in-has-multiple-document-elements.html similarity index 53% rename from LayoutTests/fast/css/lang-pseudo-container-query-multiple-document-elements-invalidation.html rename to LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/lang-pseudo-class-in-has-multiple-document-elements.html index d41be055e44ca..5dbe9c711a9c5 100644 --- a/LayoutTests/fast/css/lang-pseudo-container-query-multiple-document-elements-invalidation.html +++ b/LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/lang-pseudo-class-in-has-multiple-document-elements.html @@ -1,7 +1,13 @@ + + + + + + +

Test passes if there is a filled green square and no red.

+ diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/lang-pseudo-class-in-has-xhtml-expected.xht b/LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/lang-pseudo-class-in-has-xhtml-expected.xht new file mode 100644 index 0000000000000..05a13794482a9 --- /dev/null +++ b/LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/lang-pseudo-class-in-has-xhtml-expected.xht @@ -0,0 +1,19 @@ + + + + CSS Reftest Reference + + + + +

Test passes if there is a filled green square and no red.

+
+ + diff --git a/LayoutTests/fast/css/lang-pseudo-container-query-invalidation-xhtml.xhtml b/LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/lang-pseudo-class-in-has-xhtml.xhtml similarity index 80% rename from LayoutTests/fast/css/lang-pseudo-container-query-invalidation-xhtml.xhtml rename to LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/lang-pseudo-class-in-has-xhtml.xhtml index 07a1f1f0008dd..3a421c2e12095 100644 --- a/LayoutTests/fast/css/lang-pseudo-container-query-invalidation-xhtml.xhtml +++ b/LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/lang-pseudo-class-in-has-xhtml.xhtml @@ -2,14 +2,21 @@ + + + + + + +

Test passes if there is a filled green square and no red.