Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-variables/wide-keyword-fallback-002.html - WPT Dashboard Interop Dashboard
<!doctype html>
<title>CSS Test: Wide keyword can be used as a fallback variable value for custom properties themselves</title>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="match" href="wide-keyword-fallback-002-ref.html">
<style>
.outer1 {
--color: green;
}
.outer2 {
--color: var(--foo, unset);
}
.inner {
color: var(--color);
}
</style>
<div class="outer1">
<div class="outer2">
<div class="inner">
Should be green
</div>
</div>
</div>