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

Side by Side Diff: LayoutTests/fast/css/link-alternate-stylesheet-1.html

Issue 22414006: Revert "Revert "[css3-text] Implement text-decoration property shorthand"" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added missing skipped test to TestExpectations Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/ DTD/xhtml11.dtd"> 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/ DTD/xhtml11.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head> 2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head>
3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4 <link rel="stylesheet" href="resources/basic.css" type="text/css"> 4 <link rel="stylesheet" href="resources/basic.css" type="text/css">
5 <link rel="stylesheet" href="resources/small.css" type="text/css"> 5 <link rel="stylesheet" href="resources/small.css" type="text/css">
6 <link rel="stylesheet" href="resources/normal.css" type="text/css"> 6 <link rel="stylesheet" href="resources/normal.css" type="text/css">
7 <script src="../js/resources/js-test-pre.js"></script> 7 <script src="../js/resources/js-test-pre.js"></script>
8 </head> 8 </head>
9 <body> 9 <body>
10 <h1 id="firstH1" >Alternate stylesheets</h1> 10 <h1 id="firstH1" >Alternate stylesheets</h1>
11 11
12 <p id="textLine" >This document has 3 stylesheets, with no alternate styleshee ts. It should:</p> 12 <p id="textLine" >This document has 3 stylesheets, with no alternate styleshee ts. It should:</p>
13 13
14 <ul> 14 <ul>
15 <li>Have a green border at the top of the page</li> 15 <li>Have a green border at the top of the page</li>
16 <li>An underlined <code>H1</code></li> 16 <li>An underlined <code>H1</code></li>
17 <li>12px text</li> 17 <li>12px text</li>
18 </ul> 18 </ul>
19 19
20 <script> 20 <script>
21 description("Alternate stylesheet (link) title test 1"); 21 description("Alternate stylesheet (link) title test 1");
22 22
23 if (window.testRunner) 23 if (window.testRunner)
24 testRunner.dumpAsText(); 24 testRunner.dumpAsText();
25 25
26 window.onload = function () { 26 window.onload = function () {
27 element = document.getElementById("firstH1"); 27 element = document.getElementById("firstH1");
28 shouldBe("getComputedStyle(element).getPropertyValue('text-decoration')", "'underline'"); 28 shouldBe("getComputedStyle(element).getPropertyValue('text-decoration')", "'underline solid rgb(51, 51, 51)'");
29 29
30 element = document.getElementById("textLine"); 30 element = document.getElementById("textLine");
31 shouldBe("getComputedStyle(element).getPropertyValue('font-size')", "'12px '"); 31 shouldBe("getComputedStyle(element).getPropertyValue('font-size')", "'12px '");
32 32
33 shouldBe("getComputedStyle(document.body).getPropertyValue('border-top-col or')", "'rgb(0, 128, 0)'"); 33 shouldBe("getComputedStyle(document.body).getPropertyValue('border-top-col or')", "'rgb(0, 128, 0)'");
34 34
35 wasPostTestScriptParsed = true; 35 wasPostTestScriptParsed = true;
36 finishJSTest(); 36 finishJSTest();
37 } 37 }
38 </script> 38 </script>
39 39
40 </body> 40 </body>
41 </html> 41 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698