summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/CSS2/linebox/crashtests/dir-change-simplifed-crash.html
blob: 4e05bc8cb9d7b671605a7bda5154b455ff3c6519 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css2/#direction">
<link rel="author" title="Koji Ishii" href="mailto:kojii@chromium.org">
<style>
body, div { position: absolute; }
body { direction: rtl; white-space: pre-line; }
</style>
<body>&#x20;&#x20;&#xA;'123456789<div>&#x20;</div>
<script>
  // Force layout and await paint
  document.body.offsetLeft;
  requestAnimationFrame(() => requestAnimationFrame(() => {
    document.querySelector("div").dir = "ltr";
  }));
</script>
</body>