Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1174)

Side by Side Diff: third_party/WebKit/LayoutTests/imported/csswg-test/css-writing-modes-3/text-orientation-parsing-sideways-right-001.html

Issue 1394423002: update-w3c-deps import using blink d9b074fe31794b3500d8e7ccf4d9ab7b15a7e86d: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>CSS Writing Modes: parsing text-orientation</title> 2 <title>CSS Writing Modes: parsing text-orientation</title>
3 <link rel="author" title="Koji Ishii" href="kojiishi@gmail.com"> 3 <link rel="author" title="Koji Ishii" href="kojiishi@gmail.com">
4 <link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#text-orient ation"> 4 <link rel="help" href="https://drafts.csswg.org/css-writing-modes-3/#text-orient ation">
5 <meta name="assert" content="This test asserts the parser and getComputedStyle w orks correctly for the text-orientation property."> 5 <meta name="assert" content="This test asserts the parser and getComputedStyle w orks correctly for the text-orientation property.">
6 <meta name="flags" content="dom may"> 6 <meta name="flags" content="dom may">
7 <script src="../../../resources/testharness.js"></script> 7 <script src="../../../resources/testharness.js"></script>
8 <script src="../../../resources/testharnessreport.js"></script> 8 <script src="../../../resources/testharnessreport.js"></script>
9 9
10 <div style="-webkit-text-orientation: sideways-right" 10 <div style="text-orientation: sideways-right"
11 data-expected="sideways"></div> 11 data-expected="sideways"></div>
12 12
13 <script> 13 <script>
14 Array.prototype.forEach.call(document.querySelectorAll("[data-expected]"), funct ion (element) { 14 Array.prototype.forEach.call(document.querySelectorAll("[data-expected]"), funct ion (element) {
15 test(function () { 15 test(function () {
16 var actual = getComputedStyle(element).textOrientation; 16 var actual = getComputedStyle(element).textOrientation;
17 assert_equals(actual, element.dataset.expected); 17 assert_equals(actual, element.dataset.expected);
18 }, element.title || element.getAttribute("style")); 18 }, element.title || element.getAttribute("style"));
19 }); 19 });
20 </script> 20 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698