Files
sousa-gecko/testing/web-platform/tests/css/cssom/cssstyledeclaration-cssfontrule.tentative.html
T
Sam Weinig 4bf50532ca Bug 1957464 [wpt PR 51724] - Export made from a WebKit repository of commits https://commits.webkit.org/292368@main and https://commits.webkit.org/292602@main, a=testonly
Automatic update from web-platform-tests
Export made from a WebKit repository of commits https://commits.webkit.org/292368@main and https://commits.webkit.org/292602@main (#51724)

Update CSSOM tests to reflect spec changes.
--

wpt-commits: 5e868f70784cac5d53f08c77576d21aa69684d76
wpt-pr: 51724
2025-04-03 09:43:38 +00:00

23 lines
786 B
HTML

<!doctype html>
<meta charset="utf-8">
<title>CSSStyleDeclaration for a CSSFontRule</title>
<link rel="help" href="https://drafts.csswg.org/cssom/#the-cssstyledeclaration-interface">
<link rel="help" href="https://drafts.csswg.org/css-fonts-4/#cssfontfacerule">
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/5649#issuecomment-755796005">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
@font-face {}
</style>
<script>
const fontFaceRule = document.styleSheets[0].cssRules[0];
test(() => {
assert_true("unicode-range" in fontFaceRule.style);
assert_idl_attribute(fontFaceRule.style, "unicode-range");
}, "a CSSStyleDeclaration for a CSSFontRule contains a unicode-range attribute");
</script>