diff --git a/testing/web-platform/tests/css/css-cascade/resources/scope-imported.css b/testing/web-platform/tests/css/css-cascade/resources/scope-imported.css new file mode 100644 index 0000000000000..d0fa1954022a5 --- /dev/null +++ b/testing/web-platform/tests/css/css-cascade/resources/scope-imported.css @@ -0,0 +1,21 @@ +.x { + --x: 1; +} + +:scope > .y { + --y: 1; +} + +@scope (.inner-scope) { + .z { + --z: 1; + } +} + +& > .w { + --w: 1; +} + +& > & > .u { + --u: 1; +} \ No newline at end of file diff --git a/testing/web-platform/tests/css/css-cascade/scope-import-implicit.tentative.html b/testing/web-platform/tests/css/css-cascade/scope-import-implicit.tentative.html new file mode 100644 index 0000000000000..3350afca77ce4 --- /dev/null +++ b/testing/web-platform/tests/css/css-cascade/scope-import-implicit.tentative.html @@ -0,0 +1,25 @@ + +@import scope(), implicit scope + + + +
+
+ +
Inside
+
+
Outside
+
+ diff --git a/testing/web-platform/tests/css/css-cascade/scope-import-inner-scope.tentative.html b/testing/web-platform/tests/css/css-cascade/scope-import-inner-scope.tentative.html new file mode 100644 index 0000000000000..d30c9991bda77 --- /dev/null +++ b/testing/web-platform/tests/css/css-cascade/scope-import-inner-scope.tentative.html @@ -0,0 +1,29 @@ + +@import scope(), :scope rules in imported stylesheet + + + + +
+
+
+
Inside
+
+
+
+
Outside
+
+
+ diff --git a/testing/web-platform/tests/css/css-cascade/scope-import-multiple.tentative.html b/testing/web-platform/tests/css/css-cascade/scope-import-multiple.tentative.html new file mode 100644 index 0000000000000..5385c215cd30a --- /dev/null +++ b/testing/web-platform/tests/css/css-cascade/scope-import-multiple.tentative.html @@ -0,0 +1,31 @@ + +@import scope(), same stylesheet imported multiple times + + + + +
+
+
Inside
+
+
+
Inside
+
+
Outside
+
+ diff --git a/testing/web-platform/tests/css/css-cascade/scope-import-parent-pseudo.tentative.html b/testing/web-platform/tests/css/css-cascade/scope-import-parent-pseudo.tentative.html new file mode 100644 index 0000000000000..5fe7faa92a660 --- /dev/null +++ b/testing/web-platform/tests/css/css-cascade/scope-import-parent-pseudo.tentative.html @@ -0,0 +1,32 @@ + +@import scope(), '&' selectors + + + + +
+
+
Inside
+
+
Inner (W)
+
Inner (U)
+
+
+
+ diff --git a/testing/web-platform/tests/css/css-cascade/scope-import-scope-end.tentative.html b/testing/web-platform/tests/css/css-cascade/scope-import-scope-end.tentative.html new file mode 100644 index 0000000000000..98f2ac4adbf55 --- /dev/null +++ b/testing/web-platform/tests/css/css-cascade/scope-import-scope-end.tentative.html @@ -0,0 +1,27 @@ + +@import scope() with <scope-end> + + + + +
+
+
Inside
+
+
Below limit
+
+
+
+ diff --git a/testing/web-platform/tests/css/css-cascade/scope-import-scope-pseudo.tentative.html b/testing/web-platform/tests/css/css-cascade/scope-import-scope-pseudo.tentative.html new file mode 100644 index 0000000000000..da35c2981b214 --- /dev/null +++ b/testing/web-platform/tests/css/css-cascade/scope-import-scope-pseudo.tentative.html @@ -0,0 +1,29 @@ + +@import scope(), :scope rules in imported stylesheet + + + + +
+
+
Inside
+
+
Inside, but should not match
+
+
+
Outside
+
+ diff --git a/testing/web-platform/tests/css/css-cascade/scope-import-scope-start.tentative.html b/testing/web-platform/tests/css/css-cascade/scope-import-scope-start.tentative.html new file mode 100644 index 0000000000000..d1de75f8e1076 --- /dev/null +++ b/testing/web-platform/tests/css/css-cascade/scope-import-scope-start.tentative.html @@ -0,0 +1,25 @@ + +@import scope(), <scope-start> + + + + +
+
+
Inside
+
+
Outside
+
+