blob: cf2f468362dbcb5ea8cce5fc6aeb15b0fa71b9b4 [file] [log] [blame]
commit-queue@webkit.orgbcd28a42019-07-06 11:03:56 +00001<!DOCTYPE html>
2<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
3<link rel="help" href="https://drafts.csswg.org/cssom-view-1/#dom-element-getclientrects">
4<div style="position:absolute; top:0; left:0; width:200px; height:100px; writing-mode:horizontal-tb; direction:ltr;">
5 <br id="child">
6</div>
7<script src="../../../../../resources/testharness.js"></script>
8<script src="../../../../../resources/testharnessreport.js"></script>
9<script>
10 test(()=>{
11 let r = document.getElementById("child").getClientRects()[0];
12 assert_equals(r.left, 0);
13 assert_greater_than_equal(r.top, 0);
14 assert_less_than(r.top, 50);
15 }, "Position of the BR element");
16</script>