mirror of
https://github.com/servo/servo.git
synced 2025-09-06 04:58:21 +01:00
Update web-platform-tests to revision 9ca57e052ba1b19fa3dd46c6aa656e8d529469a8
This commit is contained in:
parent
68cb8f3d59
commit
75d6484415
1377 changed files with 31062 additions and 16983 deletions
21
tests/wpt/web-platform-tests/css/cssom/CSSFontFaceRule.html
Normal file
21
tests/wpt/web-platform-tests/css/cssom/CSSFontFaceRule.html
Normal file
|
@ -0,0 +1,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>
|
Loading…
Add table
Add a link
Reference in a new issue