layout/reftests/dom/xbl-children-1.xhtml

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/dom/xbl-children-1.xhtml	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,39 @@
     1.4 +<html xmlns="http://www.w3.org/1999/xhtml">
     1.5 +<head>
     1.6 +
     1.7 +<bindings xmlns="http://www.mozilla.org/xbl"
     1.8 +          xmlns:xhtml="http://www.w3.org/1999/xhtml">
     1.9 +  <binding id="a">
    1.10 +    <content>
    1.11 +      <xhtml:div class="aparent">
    1.12 +        <xhtml:div class="a">
    1.13 +          <children>
    1.14 +            <xhtml:div class="b">
    1.15 +              TEXT
    1.16 +            </xhtml:div>
    1.17 +          </children>
    1.18 +        </xhtml:div>
    1.19 +      </xhtml:div>
    1.20 +    </content>
    1.21 +  </binding>
    1.22 +</bindings>
    1.23 +
    1.24 +<style>
    1.25 +
    1.26 +  @namespace xbl "http://www.mozilla.org/xbl";
    1.27 +  .a > .b { color: green; }
    1.28 +  .a > xbl|children > .b { text-decoration: underline; }
    1.29 +  .a .b { text-transform: lowercase; }
    1.30 +  .aparent > * > .b { background: yellow; }
    1.31 +
    1.32 +  /* Inverse cases. */
    1.33 +  .a > * > xbl|children > .b { color: red !important; }
    1.34 +
    1.35 +</style>
    1.36 +
    1.37 +</head>
    1.38 +
    1.39 +<body>
    1.40 +<div style="-moz-binding: url(#a);" />
    1.41 +</body>
    1.42 +</html>

mercurial