summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/cssom/change-rule-with-layers-crash.html
blob: 63e8ec5207e94e8cae555ee0e0db2d8d6d095a11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<title>CSSOM Test: Chrome crash when modifying rules with @layer</title>
<link rel="help" href="https://crbug.com/1499277">
<link rel="author" title="Steinar H. Gunderson" href="mailto:sesse@chromium.org">
<style id="s">
.x {
  transition: color 0.5s;
  @layer warning {
    :first-child { }
    :last-child { }
  }
}
</style>
<p>Test passes if it does not crash.</p>
<script>
document.body.offsetTop;
s.sheet.cssRules[0].style.transitionDuration = '1s';
</script>