summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-nesting/supports-is-consistent.html
blob: 8be0d666d6e3ca4b4306172b7c33897f9d40a9bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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>