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-notype-fallback.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel="match" href="attr-notype-fallback-ref.html">
<style>
#one::after {
content: attr(does-not-exist, "Fallback value");
}
#two::after {
content: attr(does-exist, "Fallback value");
}
#three::after {
content: attr(does-not-exist, invalid);
}
#four::after {
content: attr(does-exist, invalid);
}
#five::after {
content: attr(does-exist, "Fallback value");
}
#six::after {
content: attr(does-exist, "Fallback value");
}
</style>
<div id="one"></div>
<div id="two" does-exist="Not fallback value"></div>
<div id="three"></div>
<div id="four" does-exist="Not fallback value"></div>
<div id="five" does-exist=""></div>
<div id="six" does-exist></div>