mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update web-platform-tests and CSS tests.
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180. - Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
This commit is contained in:
parent
fb4f421c8b
commit
296fa2512b
21852 changed files with 2080936 additions and 892894 deletions
|
@ -0,0 +1,29 @@
|
|||
<!DOCTYPE html>
|
||||
<html><head><title>CSS Writing Modes: parsing unicode-bidi: normal, embed, bidi-override</title>
|
||||
<link href="mailto:kojiishi@gmail.com" rel="author" title="Koji Ishii">
|
||||
<link href="https://drafts.csswg.org/css2/visuren.html#direction" rel="help">
|
||||
<link href="https://drafts.csswg.org/css-writing-modes-3/#unicode-bidi" rel="help">
|
||||
<meta content="This test asserts the parser and getComputedStyle works correctly for the unicode-bidi: normal, embed, bidi-override." name="assert">
|
||||
<meta content="dom" name="flags">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
|
||||
</head><body><div data-expected="normal" title="Initial value of unicode-bidi"></div>
|
||||
|
||||
<div data-expected="normal" style="unicode-bidi: embed; unicode-bidi: normal"></div>
|
||||
<div data-expected="embed" style="unicode-bidi: embed"></div>
|
||||
<div data-expected="bidi-override" style="unicode-bidi: bidi-override"></div>
|
||||
|
||||
<div style="unicode-bidi: embed">
|
||||
<div data-expected="normal" title="unicode-bidi should not inherit"></div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
Array.prototype.forEach.call(document.querySelectorAll("[data-expected]"), function (element) {
|
||||
test(function () {
|
||||
var actual = getComputedStyle(element).unicodeBidi;
|
||||
assert_equals(actual, element.dataset.expected);
|
||||
}, element.title || element.getAttribute("style"));
|
||||
});
|
||||
</script>
|
||||
</body></html>
|
Loading…
Add table
Add a link
Reference in a new issue