1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/text-overflow/quirks-decorations.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,74 @@ 1.4 +<!-- 1.5 + Any copyright is dedicated to the Public Domain. 1.6 + http://creativecommons.org/licenses/publicdomain/ 1.7 + 1.8 + Test: Quirks mode text-decorations 1.9 +--> 1.10 +<html><head> 1.11 +<title>text-overflow: Quirks mode text-decorations</title> 1.12 +<style type="text/css"> 1.13 +@font-face { 1.14 + font-family: Ahem; 1.15 + src: url(../fonts/Ahem.ttf); 1.16 +} 1.17 +@font-face { 1.18 + font-family: DejaVuSansMono; 1.19 + src: url(../fonts/DejaVuSansMono.woff); 1.20 +} 1.21 +html,body { 1.22 + color:black; background-color:white; font-size:16px; padding:0; margin:0; font-family:DejaVuSansMono; 1.23 +} 1.24 + 1.25 +.test { 1.26 + overflow:hidden; 1.27 + text-overflow:ellipsis; 1.28 + float:left; 1.29 + height:2em; 1.30 + white-space:pre; 1.31 + margin-left:1em; 1.32 + margin-bottom:1em; 1.33 + font-size:20px; 1.34 + color:blue; 1.35 +} 1.36 +span { 1.37 + text-shadow:0px 1em 2px blue; 1.38 + text-decoration: line-through; 1.39 + font-size:16px; 1.40 + color:black; 1.41 +} 1.42 +.rtl span { 1.43 + text-shadow:0 1em 0px blue; 1.44 +} 1.45 +.rlo { 1.46 + unicode-bidi: bidi-override; direction:rtl; 1.47 +} 1.48 +.lro { 1.49 + unicode-bidi: bidi-override; 1.50 +} 1.51 +.rtl { 1.52 + direction:rtl; 1.53 +} 1.54 +.ltr { 1.55 + direction:ltr; 1.56 +} 1.57 +.t1 { width:7.3em;} 1.58 +.t2 { width:20px;} 1.59 +.t3 { width:22px; } 1.60 +.t4 { width:1px; font-family:Ahem; } 1.61 +.t3 span {margin-left:14px; } 1.62 + 1.63 +m { font-size:20px; } 1.64 + 1.65 +</style> 1.66 + 1.67 +</head><body> 1.68 + 1.69 +<div class="test t1"><span>0123 567890123456789</span><m>x</m></div> 1.70 +<div class="test rtl t1"><m>x</m><span>0321 56789012345</span></div> 1.71 +<div class="test t2"><span>xxxx<m>x</m></span></div> 1.72 +<div class="test t3"><span>x<m>x</m></span></div> 1.73 +<div class="test t4"><span>x<m>x</m></span></div> 1.74 + 1.75 + 1.76 +</body> 1.77 +</html>