summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-nesting/supports-is-consistent.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/css/css-nesting/supports-is-consistent.html')
-rw-r--r--testing/web-platform/tests/css/css-nesting/supports-is-consistent.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-nesting/supports-is-consistent.html b/testing/web-platform/tests/css/css-nesting/supports-is-consistent.html
new file mode 100644
index 0000000000..8be0d666d6
--- /dev/null
+++ b/testing/web-platform/tests/css/css-nesting/supports-is-consistent.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<title>@supports needs to be consistent with actual nesting support</title>
+<link rel="author" title="Steinar H. Gunderson" href="mailto:sesse@chromium.org">
+<link rel="help" href="https://crbug.com/1414012">
+<link rel="match" href="supports-is-consistent-ref.html">
+<style>
+ /* This test is expected to pass even if the browser does not support nesting. */
+ @supports selector(&) {
+ p {
+ color: red;
+ & { color: inherit; }
+ }
+ }
+</style>
+<body>
+ <p>Test passes if this text is not red</p>
+</body>