summaryrefslogtreecommitdiffstats
path: root/layout/reftests/css-selectors/sibling-combinators-on-anon-content-1.xhtml
blob: e6f9598a8bbd7802fc944581f6ecd91d0e3bfee3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <bindings xmlns="http://www.mozilla.org/xbl"
              xmlns:html="http://www.w3.org/1999/xhtml">
      <binding id="x">
        <content>
          <html:span class="a"></html:span>
          <html:span class="b">This should be green</html:span>
          <children/>
        </content>
      </binding>
    </bindings>
    <style>
      #foo { -moz-binding: url("#x"); }
      .a + .b { color: green; }
    </style>
  </head>
  <body>
    <span id="foo"></span>
  </body>
</html>