Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-cascade/all-prop-inherit-color.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Cascade: "color" property preceded by "all: initial"</title>
<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>