Bug 1508812 [wpt PR 14145] - Resolve text-indent percentages to 0 for intrinsic sizing., a=testonly
authorMorten Stenshorne <mstensho@chromium.org>
Sat, 24 Nov 2018 10:28:33 +0000
changeset 507245 ff09c6ce0e11a9465fe9bead8a2638c61847346f
parent 507244 a48a908f13709ded4a087ec56b3d5196406d9171
child 507246 d28035fc485eabc7399c608a1a7388b5ad3976bf
push id1905
push userffxbld-merge
push dateMon, 21 Jan 2019 12:33:13 +0000
treeherdermozilla-release@c2fca1944d8c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1508812, 14145, 906663, 1344090, 609734
milestone65.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 1508812 [wpt PR 14145] - Resolve text-indent percentages to 0 for intrinsic sizing., a=testonly Automatic update from web-platform-testsResolve text-indent percentages to 0 for intrinsic sizing. Percentages must be ignored when calculating min/max intrinsic / preferred inline sizes, since the inline size is by definition unknown at that point. This fixes the problem both in the legacy engine and in LayoutNG. Bug: 906663 Change-Id: Ib29a66ee3d6146e72e6f9ec3283293af48e633a0 Reviewed-on: https://chromium-review.googlesource.com/c/1344090 Reviewed-by: Koji Ishii <kojii@chromium.org> Reviewed-by: Christian Biesinger <cbiesinger@chromium.org> Commit-Queue: Morten Stenshorne <mstensho@chromium.org> Cr-Commit-Position: refs/heads/master@{#609734} -- wpt-commits: 1f7b7e43db825ad5849d3a08fd4e7e83776f7a5c wpt-pr: 14145
testing/web-platform/tests/css/css-text/text-indent/percentage-value-intrinsic-size.html
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-text/text-indent/percentage-value-intrinsic-size.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
+<link rel="help" href="https://www.w3.org/TR/css-text-3/#text-indent-property">
+<meta name="assert" content="Percentages should be ignored when calculating min/max intrinsic sizes.">
+<p>Test passes if there is a filled green square.</p>
+<div id="container" data-expected-width="50" style="position:relative; float:left; height:100px; background:green;">
+  <div id="foo">
+    <div data-offset-x="50" data-expected-width="50" style="display:inline-block; width:50px; height:100px; background:green;"></div>
+    <div style="width:50px;"></div>
+  </div>
+</div>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<script src="/resources/check-layout-th.js"></script>
+<script>
+  document.body.offsetTop;
+  foo.style.textIndent = "100%";
+  checkLayout("#container");
+</script>