summaryrefslogtreecommitdiffstats
path: root/layout/reftests/bugs/1375674.html
blob: 2d5d7fa77ba86e90e2fa5eb1a73056f51c9112ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!doctype html>
<title>
  Reftest for bug 1375674: display: contents changes were assumed handled
  incorrectly
</title>
<style>
  .contents { color: red; display: contents; }
  .contents.restyled { will-change: opacity; color: green; }
</style>
<div class="contents">
  Should be green.
</div>
<script>
onload = () => {
  document.body.offsetTop;
  document.querySelector('.contents').classList.add('restyled');
}
</script>