Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/selectors/selector-after-font-family.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>A selector can be used even after using the same name in a font-family</title>
<meta charset="utf-8">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
/* An emoji to force Unicode handling: ❤️ */
.foo { font-family: empty; }
</style>
<script>
test(function() {
try {
document.querySelector(':empty');
} catch (e) {
assert_unreached("Should not throw exception");
}
}, ':empty is a valid selector');
</script>