layout/reftests/bugs/232990-1b.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 <title>display test</title>
michael@0 5 <bindings xmlns="http://www.mozilla.org/xbl"
michael@0 6 xmlns:pp="prettyprint"
michael@0 7 xmlns:html="http://www.w3.org/1999/xhtml">
michael@0 8
michael@0 9 <binding id="expander">
michael@0 10 <content><pp:float>-</pp:float><children/></content>
michael@0 11 </binding>
michael@0 12 </bindings>
michael@0 13
michael@0 14 <style type="text/css">
michael@0 15 <![CDATA[
michael@0 16 @namespace pp url("prettyprint");
michael@0 17 pp|expander-box,
michael@0 18 pp|pre-content {
michael@0 19 display: block;
michael@0 20 }
michael@0 21
michael@0 22 pp|expander-box[collapsed] > pp|float,
michael@0 23 pp|expander-box[collapsed] > pp|pre-content {
michael@0 24 display: inline;
michael@0 25 float: none;
michael@0 26 }
michael@0 27
michael@0 28 pp|expander-box[xbl] {
michael@0 29 -moz-binding: url(#expander);
michael@0 30 }
michael@0 31
michael@0 32 pp|float {
michael@0 33 float: left;
michael@0 34 }
michael@0 35 ]]></style>
michael@0 36 <script>
michael@0 37 <![CDATA[
michael@0 38 var target;
michael@0 39 function onLoad() {
michael@0 40 var res = document.evaluate("descendant::pp:expander-box",
michael@0 41 document.documentElement,
michael@0 42 function(aPref){return "prettyprint";},
michael@0 43 0, null);
michael@0 44 target = res.iterateNext();
michael@0 45 toggle();
michael@0 46 }
michael@0 47
michael@0 48 function toggle() {
michael@0 49 target.setAttribute("collapsed", "collapsed");
michael@0 50 }
michael@0 51 ]]></script>
michael@0 52 </head>
michael@0 53
michael@0 54 <body onload="onLoad()">
michael@0 55 <div>
michael@0 56 <pp:content xmlns:pp="prettyprint">
michael@0 57 <pp:expander-box xbl="yes">
michael@0 58 <pp:pre-content>pre</pp:pre-content>
michael@0 59 </pp:expander-box>
michael@0 60 </pp:content>
michael@0 61 </div>
michael@0 62 </body>
michael@0 63 </html>

mercurial