layout/reftests/bugs/495385-2d.html

Wed, 31 Dec 2014 07:16:47 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:16:47 +0100
branch
TOR_BUG_9701
changeset 3
141e0f1194b1
permissions
-rw-r--r--

Revert simplistic fix pending revisit of Mozilla integration attempt.

michael@0 1 <!DOCTYPE HTML>
michael@0 2 <html>
michael@0 3 <head>
michael@0 4 <!-- Test that before/after generated content stops suppression correctly,
michael@0 5 both statically and dynamically -->
michael@0 6 <style>
michael@0 7 body > div { border:1px solid black; margin:1em;
michael@0 8 font-family:sans-serif; letter-spacing:2px; }
michael@0 9 #d1:before { content:"Hello"; }
michael@0 10 #d2:after { content:"Kitty"; }
michael@0 11 #d3.c:before { content:"Hello"; }
michael@0 12 #d4.c:after { content:"Kitty"; }
michael@0 13 </style>
michael@0 14 <script>
michael@0 15 function loaded() {
michael@0 16 document.body.offsetHeight;
michael@0 17 document.getElementById("d3").setAttribute("class", "c");
michael@0 18 document.getElementById("d4").setAttribute("class", "c");
michael@0 19 }
michael@0 20 </script>
michael@0 21 </head>
michael@0 22 <body onload="loaded()">
michael@0 23 <div id="d1"> <span>Kitty</span></div>
michael@0 24 <div id="d2"><span>Hello</span> </div>
michael@0 25 <div id="d3"> <span>Kitty</span></div>
michael@0 26 <div id="d4"><span>Hello</span> </div>
michael@0 27 </body>
michael@0 28 </html>

mercurial