Bug 1497319 [wpt PR 13359] - [LayoutNG] Correct LayoutText::Quads() for vertical-rl., a=testonly
authorMorten Stenshorne <mstensho@chromium.org>
Tue, 09 Oct 2018 20:38:00 +0000
changeset 496216 7c524ed4f7f295c791e750fcd5d79fb167e64d37
parent 496215 97b48667434b4cc91c4f725a29ab5fde78979bfe
child 496217 3fc8243dfd233ab88699b1d3837a309be95a77f6
push id9984
push userffxbld-merge
push dateMon, 15 Oct 2018 21:07:35 +0000
treeherdermozilla-beta@183d27ea8570 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1497319, 13359, 1261698, 596747
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1497319 [wpt PR 13359] - [LayoutNG] Correct LayoutText::Quads() for vertical-rl., a=testonly Automatic update from web-platform-tests[LayoutNG] Correct LayoutText::Quads() for vertical-rl. NG needs to produce a rectangle with the block-axis offset relatively to block-start of the container, just like legacy does. Using purely physical coordinates is wrong. Cq-Include-Trybots: luci.chromium.try‚Äč:linux_layout_tests_layout_ng Change-Id: I9989628dcc339c71d850818498538aafa142ed29 Reviewed-on: https://chromium-review.googlesource.com/c/1261698 Reviewed-by: Koji Ishii <kojii@chromium.org> Commit-Queue: Morten Stenshorne <mstensho@chromium.org> Cr-Commit-Position: refs/heads/master@{#596747} -- wpt-commits: edee96b6462be67473a6263f7afca11607aac50f wpt-pr: 13359
testing/web-platform/tests/css/cssom-view/getClientRects-br-htb-ltr.html
testing/web-platform/tests/css/cssom-view/getClientRects-br-htb-rtl.html
testing/web-platform/tests/css/cssom-view/getClientRects-br-vlr-ltr.html
testing/web-platform/tests/css/cssom-view/getClientRects-br-vlr-rtl.html
testing/web-platform/tests/css/cssom-view/getClientRects-br-vrl-ltr.html
testing/web-platform/tests/css/cssom-view/getClientRects-br-vrl-rtl.html
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/cssom-view/getClientRects-br-htb-ltr.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
+<link rel="help" href="https://drafts.csswg.org/cssom-view-1/#dom-element-getclientrects">
+<div style="position:absolute; top:0; left:0; width:200px; height:100px; writing-mode:horizontal-tb; direction:ltr;">
+  <br id="child">
+</div>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script>
+  test(()=>{
+      let r = document.getElementById("child").getClientRects()[0];
+      assert_equals(r.left, 0);
+      assert_greater_than_equal(r.top, 0);
+      assert_less_than(r.top, 50);
+  }, "Position of the BR element");
+</script>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/cssom-view/getClientRects-br-htb-rtl.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
+<link rel="help" href="https://drafts.csswg.org/cssom-view-1/#dom-element-getclientrects">
+<div style="position:absolute; top:0; left:0; width:200px; height:100px; writing-mode:horizontal-tb; direction:rtl;">
+  <br id="child">
+</div>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script>
+  test(()=>{
+      let r = document.getElementById("child").getClientRects()[0];
+      assert_equals(r.left, 200);
+      assert_greater_than_equal(r.top, 0);
+      assert_less_than(r.top, 50);
+  }, "Position of the BR element");
+</script>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/cssom-view/getClientRects-br-vlr-ltr.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
+<link rel="help" href="https://drafts.csswg.org/cssom-view-1/#dom-element-getclientrects">
+<div style="position:absolute; top:0; left:0; width:200px; height:100px; writing-mode:vertical-lr; direction:ltr;">
+  <br id="child">
+</div>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script>
+  test(()=>{
+      let r = document.getElementById("child").getClientRects()[0];
+      assert_greater_than_equal(r.left, 0);
+      assert_less_than(r.left, 50);
+      assert_equals(r.top, 0);
+  }, "Position of the BR element");
+</script>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/cssom-view/getClientRects-br-vlr-rtl.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
+<link rel="help" href="https://drafts.csswg.org/cssom-view-1/#dom-element-getclientrects">
+<div style="position:absolute; top:0; left:0; width:200px; height:100px; writing-mode:vertical-lr; direction:rtl;">
+  <br id="child">
+</div>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script>
+  test(()=>{
+      let r = document.getElementById("child").getClientRects()[0];
+      assert_greater_than_equal(r.left, 0);
+      assert_less_than(r.left, 50);
+      assert_equals(r.top, 100);
+  }, "Position of the BR element");
+</script>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/cssom-view/getClientRects-br-vrl-ltr.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
+<link rel="help" href="https://drafts.csswg.org/cssom-view-1/#dom-element-getclientrects">
+<div style="position:absolute; top:0; left:0; width:200px; height:100px; writing-mode:vertical-rl; direction:ltr;">
+  <br id="child">
+</div>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script>
+  test(()=>{
+      let r = document.getElementById("child").getClientRects()[0];
+      assert_greater_than(r.left, 150);
+      assert_less_than(r.left, 200);
+      assert_equals(r.top, 0);
+  }, "Position of the BR element");
+</script>
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/cssom-view/getClientRects-br-vrl-rtl.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
+<link rel="help" href="https://drafts.csswg.org/cssom-view-1/#dom-element-getclientrects">
+<div style="position:absolute; top:0; left:0; width:200px; height:100px; writing-mode:vertical-rl; direction:rtl;">
+  <br id="child">
+</div>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script>
+  test(()=>{
+      let r = document.getElementById("child").getClientRects()[0];
+      assert_greater_than(r.left, 150);
+      assert_less_than(r.left, 200);
+      assert_equals(r.top, 100);
+  }, "Position of the BR element");
+</script>