wpt / css / css-cascade / all-prop-inherit-color.html

Status: PASS | Duration: 7ms | Subtests: 1/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-cascade/all-prop-inherit-color.html

<!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: inherit', overrides inherited 'color'.">
  <style>
    .outer {
      color: red;
    }

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

/css/css-cascade/reference/ref-green-text.html

<!DOCTYPE html>
<meta charset="utf-8">
<title>Green text reference</title>
<style>
  .test { color: green; }
</style>
<body>
  <p class="test">Test passes if this text is green.</p>
</body>