summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-lists/list-and-writing-mode-001.html
blob: df54e8fb0df8146f896c2abd136d63d930d92d1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<meta charset="utf-8">
<title>CSS Lists: test list with root writing-mode as its first child</title>
<link rel=help href="https://www.w3.org/TR/CSS22/generate.html#lists">
<!-- https://bugs.chromium.org/p/chromium/issues/detail?id=767408 -->

<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>

<div id="log"></div>

<ul>
  <li id="target">
    <div style="writing-mode: vertical-lr; height: 45px;">a b c</div>
  </li>
</ul>

<script>
test(function() {
  var height = document.getElementById("target").offsetHeight;
  assert_equals(height, 45, "the height of li should be 45px, and no extra line generated")
}, "list and writing-mode");
</script>