summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-writing-modes/vrl-inline-paint-invalidation.html
blob: a804e4d7c0a47e84e6aca2952c6ea65ab41a4402 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<html class="reftest-wait">
<link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1206914">
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<link rel="stylesheet" href="/fonts/ahem.css">
<script src="/common/reftest-wait.js"></script>
<script src="/common/rendering-utils.js"></script>
<p>Test passes if there is a filled green square.</p>
<div id="target" style="font: 100px/1 Ahem; color: green; width: 50px; height: 100px; writing-mode: vertical-rl; line-height: 0; background: red;">
  <div style="width: 100%;">
    <span style="position: relative; left: -50px;">X</span>
  </div>
</div>
<script>
waitForAtLeastOneFrame().then(function() {
  document.getElementById('target').style.width = '100px';
  takeScreenshot();
});
</script>