servo/tests/wpt/css-tests/css-writing-modes-3_dev/xhtml1print/writing-mode-parsing-svg1-001.xht
Ms2ger 296fa2512b Update web-platform-tests and CSS tests.
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180.
- Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
2017-02-06 22:38:29 +01:00

26 lines
No EOL
1.4 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>CSS Writing Modes: parsing SVG 1.1 writing-mode values</title>
<link href="mailto:kojiishi@gmail.com" rel="author" title="Koji Ishii" />
<link href="https://drafts.csswg.org/css-writing-modes-3/#svg-writing-mode" rel="help" />
<meta content="This test asserts the parser and getComputedStyle works correctly for the SVG 1.1 writing-mode values." name="assert" />
<meta content="dom svg may" name="flags" />
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head><body><div data-expected="horizontal-tb" style="writing-mode: lr"></div>
<div data-expected="horizontal-tb" style="writing-mode: lr-tb"></div>
<div data-expected="horizontal-tb" style="writing-mode: rl"></div>
<div data-expected="horizontal-tb" style="writing-mode: rl-tb"></div>
<div data-expected="vertical-rl" style="writing-mode: tb"></div>
<div data-expected="vertical-rl" style="writing-mode: tb-rl"></div>
<script>
Array.prototype.forEach.call(document.querySelectorAll("[data-expected]"), function (element) {
test(function () {
var actual = getComputedStyle(element).writingMode;
assert_equals(actual, element.dataset.expected);
}, element.title || element.getAttribute("style"));
});
</script>
</body></html>