blob: 438c30df9ebcf456dce9a36a90facb7f8e3296e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<!doctype html>
<meta charset="utf-8">
<title>CSSOM - CSSFontFaceRule interface</title>
<link rel="help" href="https://drafts.csswg.org/css-fonts-4/#cssfontfacerule">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<style>
@font-face {
src: local("foo");
font-family: foo;
font-weight: bold;
}
</style>
<script>
test(function() {
// TODO: The exact serialization isn't consistent across browsers
// (Firefox doesn't preserve ordering of the descriptors, WebKit/Blink does).
let rule = document.styleSheets[0].cssRules[0];
assert_false(rule.cssText.includes('\n'));
}, "CSSFontFaceRule.cssText doesn't serialize with newlines");
</script>
|