Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-color/relative-currentcolor-oklab-01.html - WPT Dashboard Interop Dashboard
<!doctype html>
<meta charset=utf-8>
<link rel="match" href="relative-green-ref.html">
<title>currentColor is inherited correctly in oklab RCS</title>
<link rel="author" href="mailto:chris@w3.org" title="Chris Lilley">
<style>
div {
width: 100px;
height: 100px;
background-color: red;
color: red;
background-color: oklab(from currentColor l a b);
}
div div {
color: green;
background-color: inherit;
}
</style>
<div>
<div></div>
</div>