OLD | NEW |
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> |
OLD | NEW |