layout/base/crashtests/344300-1-inner.xhtml

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

michael@0 1 <hx xmlns="http://www.w3.org/1999/xhtml" style="display: table;">
michael@0 2 <script>
michael@0 3 /*template*/
michael@0 4 var doc = document;
michael@0 5 if (document.getElementById('content'))
michael@0 6 doc = document.getElementById('content').contentDocument;
michael@0 7
michael@0 8 function addstyles(){
michael@0 9 var x=doc.createElementNS('http://www.w3.org/1999/xhtml','style');
michael@0 10 x.innerHTML='\
michael@0 11 *::first-line { text-transform: uppercase; background-color:green; font-size:110%;}\
michael@0 12 *::after { content:"anonymous text"; float:right;border:3px solid black;text-transform: uppercase;}\
michael@0 13 *::before { content:"before text"; float:right;border:3px solid black;font-size: 10px;}\
michael@0 14 *::-moz-selection { outline: 2px solid blue;}\
michael@0 15 ';
michael@0 16 doc.documentElement.appendChild(x);
michael@0 17 }
michael@0 18
michael@0 19 function removestyles(i){
michael@0 20
michael@0 21
michael@0 22 var x=doc.getElementsByTagName('*');
michael@0 23
michael@0 24 if (x[i])
michael@0 25 {
michael@0 26 x[i].removeAttribute('style');
michael@0 27 }
michael@0 28 else { i = 0; }
michael@0 29 i++;
michael@0 30 setTimeout(removestyles,50,i);
michael@0 31 }
michael@0 32 setTimeout(addstyles,200);
michael@0 33 setTimeout(removestyles,500,0);
michael@0 34 /*template*/
michael@0 35 </script>
michael@0 36 <var style="display: table-column-group;" onmouseover="this.removeAttribute('style')">ý <q style="display: table-footer-group;" onmouseover="this.removeAttribute('style')">ý </q><ins style="display: table-cell;" onmouseover="this.removeAttribute('style')">ý <p style="display: list-item;" onmouseover="this.removeAttribute('style')">ý </p><object style="display: -moz-inline-box;" onmouseover="this.removeAttribute('style')">ý </object></ins></var><table style="display: -moz-inline-box;" onmouseover="this.removeAttribute('style')">ý <ins style="display: -moz-inline-block;" onmouseover="this.removeAttribute('style')">ý </ins></table><body style="display: table-column-group;" onmouseover="this.removeAttribute('style')">ý </body><q style="display: table;" onmouseover="this.removeAttribute('style')">ý </q></hx>

mercurial