layout/reftests/bugs/383488-1.html

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

michael@0 1 <!DOCTYPE html>
michael@0 2 <html><head>
michael@0 3 <style>
michael@0 4 span { font-family: sans-serif }
michael@0 5 #a14 { font-size:72px; }
michael@0 6 </style>
michael@0 7 <script>
michael@0 8 window.onload = function()
michael@0 9 {
michael@0 10 function S(id) {
michael@0 11 return document.getElementById(id).style;
michael@0 12 }
michael@0 13 S("a1").setProperty("font-size", "illegal", "important");
michael@0 14 S("a2").setProperty("font-size", "24px;", "important");
michael@0 15 S("a3").setProperty("font-size", "24px; font-size-adjust:2", "important");
michael@0 16 S("a4").setProperty("font-size", ";", "important");
michael@0 17 S("a5").setProperty("font", "24px sans-serif;", "important");
michael@0 18 S("a6").setProperty("font", "24px;", "important");
michael@0 19 S("a7").setProperty("font-size", " 72px ", "important"); // correct
michael@0 20 S("a8").setProperty("font", ";", "important");
michael@0 21 S("a9").setProperty("font", " 72px sans-serif ", "important"); // correct
michael@0 22 S("a10").setProperty("font-size", "!", "important");
michael@0 23 S("a11").setProperty("font-size", "!important", "important");
michael@0 24 S("a12").setProperty("font-size", "}", "important");
michael@0 25 S("a13").setProperty("font-size", "; font-size:24px", "important");
michael@0 26 S("a14").setProperty("font-size", "", "important"); // correct
michael@0 27 S("a15").setProperty("font-size", "24px !important;", "important");
michael@0 28 S("a16").setProperty("font-size", "24px !important; height:1px", "important");
michael@0 29 }
michael@0 30 </script>
michael@0 31 </head><body>
michael@0 32 <p>The X'es below should have the same size:</p>
michael@0 33 <!-- The wonky placement of line breaks below is to eliminate all
michael@0 34 significant whitespace within the paragraph. -->
michael@0 35 <p
michael@0 36 ><span id="a1" style="font-size:72px!important;">X</span
michael@0 37 ><span id="a2" style="font-size:72px!important;">X</span
michael@0 38 ><span id="a3" style="font-size:72px!important;">X</span
michael@0 39 ><span id="a4" style="font-size:72px!important;">X</span
michael@0 40 ><span id="a5" style="font-size:72px!important;">X</span
michael@0 41 ><span id="a6" style="font-size:72px!important;">X</span
michael@0 42 ><span id="a7" style="font-size:24px!important;">X</span
michael@0 43 ><span id="a8" style="font-size:72px!important;">X</span
michael@0 44 ><span id="a9" style="font:24px sans-serif!important;">X</span
michael@0 45 ><span id="a10" style="font-size:72px!important;">X</span
michael@0 46 ><span id="a11" style="font-size:72px!important;">X</span
michael@0 47 ><span id="a12" style="font-size:72px!important;">X</span
michael@0 48 ><span id="a13" style="font-size:72px!important;">X</span
michael@0 49 ><span id="a14" style="font-size:24px!important;">X</span
michael@0 50 ><span id="a15" style="font-size:72px!important;">X</span
michael@0 51 ><span id="a16" style="font-size:72px!important;">X</span
michael@0 52 ></p>
michael@0 53 </body></html>

mercurial