layout/reftests/bugs/232990-1a.xhtml

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 <?xml version="1.0"?>
michael@0 2 <html xmlns="http://www.w3.org/1999/xhtml">
michael@0 3 <head>
michael@0 4 <style type="text/css">
michael@0 5 <![CDATA[
michael@0 6 @namespace pp url("prettyprint");
michael@0 7 pp|expander-box,
michael@0 8 pp|pre-content {
michael@0 9 display: block;
michael@0 10 }
michael@0 11
michael@0 12 pp|expander-box[collapsed] > pp|float,
michael@0 13 pp|expander-box[collapsed] > pp|pre-content {
michael@0 14 display: inline;
michael@0 15 float: none;
michael@0 16 }
michael@0 17
michael@0 18 pp|float {
michael@0 19 float: left;
michael@0 20 }
michael@0 21 ]]></style>
michael@0 22 <script>
michael@0 23 <![CDATA[
michael@0 24 var target;
michael@0 25 function onLoad() {
michael@0 26 var res = document.evaluate("descendant::pp:expander-box",
michael@0 27 document.documentElement,
michael@0 28 function(aPref){return "prettyprint";},
michael@0 29 0, null);
michael@0 30 target = res.iterateNext();
michael@0 31 toggle();
michael@0 32 }
michael@0 33
michael@0 34 function toggle() {
michael@0 35 target.setAttribute("collapsed", "collapsed");
michael@0 36 }
michael@0 37 ]]></script>
michael@0 38 </head>
michael@0 39
michael@0 40 <body onload="onLoad()">
michael@0 41 <div>
michael@0 42 <pp:content xmlns:pp="prettyprint">
michael@0 43 <pp:expander-box><pp:float>-</pp:float>
michael@0 44 <pp:pre-content>pre</pp:pre-content>
michael@0 45 </pp:expander-box>
michael@0 46 </pp:content>
michael@0 47 </div>
michael@0 48 </body>
michael@0 49 </html>

mercurial