summaryrefslogtreecommitdiffstats
path: root/layout/reftests/generated-content/transitive-style-invalidation.html
blob: 7972b6ea45013006f197756a14d34b8bb62c6141 (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>
<style>
.foo > div::before {
  display: block;
  width: 100px;
  height: 100px;
  background: red;
  content: "";
}
.foo.bar > div::before {
  background: green;
}
</style>
<div class="foo">
  <div>
  </div>
</div>
<script>
onload = function() {
  document.querySelector('.foo').className = 'foo bar';
}
</script>