wpt / css / css-properties-values-api / registered-property-computation-color-004.html

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

/css/css-properties-values-api/registered-property-computation-color-004.html

<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-properties-values-api/#calculation-of-computed-values" />
<link rel="match" href="/css/reference/ref-filled-green-100px-square-only.html">
<style>
  @property --a {
    syntax: '<color>';
    inherits: true;
    initial-value: green;
  }

  body {
    --a: 1em;
  }

  div {
    width: 100px;
    height: 100px;
    background-color: var(--a);
  }
</style>
<p>Test passes if there is a filled green square.</p>
<div></div>

/css/reference/ref-filled-green-100px-square-only.html

<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
<p>Test passes if there is a filled green square.</p>
<div style="width:100px; height:100px; background:green;"></div>