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

Side by Side Diff: LayoutTests/fast/css3-text/css3-text-decoration/repaint/repaint-text-decoration-style.html

Issue 14576017: Implement CSS3TextDecorations runtime flag in favor of CSS3_TEXT (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removed updated on text-underline-position for now (to be discussed & re-added later) Created 7 years, 7 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 <html> 2 <html>
3 <head> 3 <head>
4 <!-- Bugzilla link: http://webkit.org/b/94094 --> 4 <!-- Bugzilla link: http://webkit.org/b/94094 -->
5 <title>CSS Test: CSS3 text-decoration-style repaint</title> 5 <title>CSS Test: CSS3 text-decoration-style repaint</title>
6 <link rel="help" href="http://http://dev.w3.org/csswg/css3-text/#text-de coration-style"/> 6 <link rel="help" href="http://http://dev.w3.org/csswg/css3-text/#text-de coration-style"/>
7 <meta name="flags" content="ahem"/> 7 <meta name="flags" content="ahem"/>
8 <script> 8 <script>
9 if (window.testRunner) 9 if (window.testRunner)
10 testRunner.dumpAsText(true); 10 testRunner.dumpAsText(true);
11 </script> 11 </script>
12 <script src="../../../repaint/resources/repaint.js" type="text/javascrip t"></script> 12 <script src="../../../repaint/resources/repaint.js" type="text/javascrip t"></script>
13 <script> 13 <script>
14 function repaintTest() { 14 function repaintTest() {
15 document.getElementById("test-initial-blank").style.webkitTextDe corationStyle = ''; 15 document.getElementById("test-initial-blank").style.textDecorati onStyle = '';
16 document.getElementById("test-initial-explicit").style.webkitTex tDecorationStyle = 'initial'; 16 document.getElementById("test-initial-explicit").style.textDecor ationStyle = 'initial';
17 document.getElementById("test-invalid-unknown").style.webkitText DecorationStyle = 'unknown'; 17 document.getElementById("test-invalid-unknown").style.textDecora tionStyle = 'unknown';
18 document.getElementById("test-inherit-explicit").style.webkitTex tDecorationStyle = 'inherit'; 18 document.getElementById("test-inherit-explicit").style.textDecor ationStyle = 'inherit';
19 document.getElementById("test-repaint-parent").style.webkitTextD ecorationStyle = 'double'; 19 document.getElementById("test-repaint-parent").style.textDecorat ionStyle = 'double';
20 } 20 }
21 </script> 21 </script>
22 </head> 22 </head>
23 <body onload="runRepaintTest();" style="font: 20px Ahem; -webkit-font-smooth ing: none; -webkit-text-stroke: 1px black; -webkit-text-fill-color: white;"> 23 <body onload="runRepaintTest();" style="font: 20px Ahem; -webkit-font-smooth ing: none; -webkit-text-stroke: 1px black; -webkit-text-fill-color: white;">
24 <!-- Blank and 'initial' values fallbacks to 'solid' on repaintTest(). - -> 24 <!-- Blank and 'initial' values fallbacks to 'solid' on repaintTest(). - ->
25 <p><span id="test-initial-blank" style="text-decoration: underline; -web kit-text-decoration-style: double;">lorem ipsum</span></p> 25 <p><span id="test-initial-blank" style="text-decoration: underline; text -decoration-style: double;">lorem ipsum</span></p>
26 <p><span id="test-initial-explicit" style="text-decoration: underline; - webkit-text-decoration-style: double;">lorem ipsum</span></p> 26 <p><span id="test-initial-explicit" style="text-decoration: underline; t ext-decoration-style: double;">lorem ipsum</span></p>
27 <!-- Unknown value is ignored and fallback to last valid value on repain tTest() --> 27 <!-- Unknown value is ignored and fallback to last valid value on repain tTest() -->
28 <p><span id="test-invalid-unknown" style="text-decoration: underline; -w ebkit-text-decoration-style: double;">lorem ipsum</span></p> 28 <p><span id="test-invalid-unknown" style="text-decoration: underline; te xt-decoration-style: double;">lorem ipsum</span></p>
29 <!-- Ancestor can explicitly request 'inherit' from parent on repaintTes t() --> 29 <!-- Ancestor can explicitly request 'inherit' from parent on repaintTes t() -->
30 <p><span style="text-decoration: underline; -webkit-text-decoration-styl e: double;"><span id="test-inherit-explicit" style="-webkit-text-decoration-styl e: dashed;">lorem ipsum</span></span></p> 30 <p><span style="text-decoration: underline; text-decoration-style: doubl e;"><span id="test-inherit-explicit" style="text-decoration-style: dashed;">lore m ipsum</span></span></p>
31 <!-- Ancestor span should not inherit 'double' style from parent on repa intTest(). --> 31 <!-- Ancestor span should not inherit 'double' style from parent on repa intTest(). -->
32 <p><span id="test-repaint-parent" style="text-decoration: underline;"><s pan>lorem ipsum</span></span></p> 32 <p><span id="test-repaint-parent" style="text-decoration: underline;"><s pan>lorem ipsum</span></span></p>
33 </body> 33 </body>
34 </html> 34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698