dom/plugins/test/reftest/border-padding-3.html

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 <!DOCTYPE html>
michael@0 2 <html class="reftest-wait">
michael@0 3 <body style="margin:0">
michael@0 4 <object type="application/x-test" id="plugin"
michael@0 5 drawmode="solid" color="00000000"
michael@0 6 style="width:200px; height:200px; display:block; margin:90px 80px;
michael@0 7 outline:5px dashed blue;
michael@0 8 background:cyan;
michael@0 9 border:dotted black; border-width:4px 8px 4px 8px;
michael@0 10 padding:3px 1px;">
michael@0 11 </object>
michael@0 12 <script>
michael@0 13 var prevPaintCount = 0;
michael@0 14 function doTestWait() {
michael@0 15 if (document.getElementById("plugin").getPaintCount() != prevPaintCount) {
michael@0 16 document.documentElement.removeAttribute('class');
michael@0 17 } else {
michael@0 18 setTimeout(doTestWait, 0);
michael@0 19 }
michael@0 20 }
michael@0 21
michael@0 22 function doTest() {
michael@0 23 prevPaintCount = document.getElementById("plugin").getPaintCount();
michael@0 24 document.getElementById("plugin").setColor("FFFF80FF");
michael@0 25 setTimeout(doTestWait, 0);
michael@0 26
michael@0 27 }
michael@0 28 window.addEventListener("MozReftestInvalidate", doTest, false);
michael@0 29 </script>
michael@0 30 </body>
michael@0 31 </html>

mercurial