summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-cascade/all-prop-initial-color.html
blob: 83a78bd08602ce9aa7cb8f681e9f3626fc3083b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>CSS Cascade: "color" property preceded by "all: initial"</title>
  <link rel="help" href="https://www.w3.org/TR/css-cascade-4/#all-shorthand">
  <link rel="match" href="reference/ref-green-text.html">
  <meta name="assert" content="Own 'color', preceded by 'all: initial', overrides inherited 'color'.">
  <style>
    .outer {
      color: red;
    }

    .inner {
      all: initial;
      color: green;
    }
  </style>
</head>
<body>
  <p class="outer"><span class="inner">Test passes if this text is green.</span></p>
</body>
</html>