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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/csswg-test/css-writing-modes-3/text-orientation-parsing-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"> 6 <meta name="flags" content="dom">
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 10 <div
11 data-expected="mixed" title="text-orientation initial value"></div> 11 data-expected="mixed" title="text-orientation initial value"></div>
12 12
13 <div style="-webkit-text-orientation: upright" 13 <div style="text-orientation: upright"
14 data-expected="upright"></div> 14 data-expected="upright"></div>
15 <div style="-webkit-text-orientation: sideways" 15 <div style="text-orientation: sideways"
16 data-expected="sideways"></div> 16 data-expected="sideways"></div>
17 17
18 <div style="-webkit-text-orientation: upright"> 18 <div style="text-orientation: upright">
19 <div 19 <div
20 data-expected="upright" title="text-orientation should inherit"></div> 20 data-expected="upright" title="text-orientation should inherit"></div>
21 21
22 <div style="-webkit-text-orientation: mixed" 22 <div style="text-orientation: mixed"
23 data-expected="mixed"></div> 23 data-expected="mixed"></div>
24 24
25 <div style="-webkit-text-orientation: initial" 25 <div style="text-orientation: initial"
26 data-expected="mixed"></div> 26 data-expected="mixed"></div>
27 <div style="-webkit-text-orientation: inherit" 27 <div style="text-orientation: inherit"
28 data-expected="upright"></div> 28 data-expected="upright"></div>
29 29
30 <div style="-webkit-text-orientation: foo" 30 <div style="text-orientation: foo"
31 data-expected="upright"></div> 31 data-expected="upright"></div>
32 </div> 32 </div>
33 33
34 <script> 34 <script>
35 Array.prototype.forEach.call(document.querySelectorAll("[data-expected]"), funct ion (element) { 35 Array.prototype.forEach.call(document.querySelectorAll("[data-expected]"), funct ion (element) {
36 test(function () { 36 test(function () {
37 var actual = getComputedStyle(element).textOrientation; 37 var actual = getComputedStyle(element).textOrientation;
38 assert_equals(actual, element.dataset.expected); 38 assert_equals(actual, element.dataset.expected);
39 }, element.title || element.getAttribute("style")); 39 }, element.title || element.getAttribute("style"));
40 }); 40 });
41 </script> 41 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698