Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-values/attr-in-slotted.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>CSS Values Test: attr() in pseudo element ::slotted</title>
<link rel="match" href="attr-in-slotted-ref.html">
<div class=host>
<template shadowrootmode=open>
<style>
::slotted(div) {
color: red;
color: attr(data-color type(<color>), yellow);
}
</style>
<slot data-color=blue></slot>
</template>
<div data-color=green>PASS if green</div>
</div>