Bug 1463983 [wpt PR 11133] - [LayoutNG] Rebaseline intrinsic sizing test that actually passes., a=testonly
authorMorten Stenshorne <mstensho@chromium.org>
Wed, 06 Jun 2018 14:24:22 +0000
changeset 806537 f06d0961ecf533b89b300a0f133e737beb0b4969
parent 806536 4c7ffde5d22fd7696ec2f98f1a1a47f9fbd06e12
child 806538 1ba6b0a8936d8c193188cccd5c7bc07ee95c9e11
push id112908
push userbmo:gl@mozilla.com
push dateMon, 11 Jun 2018 02:53:29 +0000
reviewerstestonly
bugs1463983, 11133, 845902, 1070270, 561428
milestone62.0a1
Bug 1463983 [wpt PR 11133] - [LayoutNG] Rebaseline intrinsic sizing test that actually passes., a=testonly Automatic update from web-platform-tests[LayoutNG] Rebaseline intrinsic sizing test that actually passes. Legacy layout is buggy here, so the expected rendering was wrong. Also wrote a new wpt test for this. When calculating intrinsic size, the legacy engine makes room for whitespace that is to be collapsed. Bug: 845902 Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_layout_ng Change-Id: I77087577aad68dc249ca33a8ac8a79ef4f35469e Reviewed-on: https://chromium-review.googlesource.com/1070270 Reviewed-by: Emil A Eklund <eae@chromium.org> Commit-Queue: Morten Stenshorne <mstensho@chromium.org> Cr-Commit-Position: refs/heads/master@{#561428} -- wpt-commits: 11638bba9dee05bfdec48264157055a471ff6878 wpt-pr: 11133
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/css/css-sizing/whitespace-and-break.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -130496,16 +130496,28 @@
       [
        "/css/css-sizing/intrinsic-percent-non-replaced-005-ref.html",
        "=="
       ]
      ],
      {}
     ]
    ],
+   "css/css-sizing/whitespace-and-break.html": [
+    [
+     "/css/css-sizing/whitespace-and-break.html",
+     [
+      [
+       "/css/reference/ref-filled-green-100px-square.xht",
+       "=="
+      ]
+     ],
+     {}
+    ]
+   ],
    "css/css-style-attr/style-attr-braces-001.xht": [
     [
      "/css/css-style-attr/style-attr-braces-001.xht",
      [
       [
        "/css/css-style-attr/reference/ref-green-on-green.xht",
        "=="
       ]
@@ -521695,16 +521707,20 @@
   "css/css-sizing/intrinsic-percent-non-replaced-005-ref.html": [
    "a2cd75ab26376e74e26414013fc34b8e7fdb1a68",
    "support"
   ],
   "css/css-sizing/intrinsic-percent-non-replaced-005.html": [
    "33aa880de7eb7c4128022871dfd5e2895be30dcc",
    "reftest"
   ],
+  "css/css-sizing/whitespace-and-break.html": [
+   "54107f6567df03437aebb1fe8aa5c6403cb1ecf1",
+   "reftest"
+  ],
   "css/css-speech/Integer.html": [
    "8db91e711b22ead393b1d9a18c224a7f838b85b0",
    "manual"
   ],
   "css/css-speech/OWNERS": [
    "3275f13bf63e920a63a84777b91a1e5d35019c0f",
    "support"
   ],
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-sizing/whitespace-and-break.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<title>Collapsable whitespace and break after inline-block</title>
+<link rel="author" title="Morten Stenshorne" href="mstensho@chromium.org">
+<link rel="help" href="https://www.w3.org/TR/css-sizing-3/#intrinsic-sizes" title="4.1. Intrinsic Sizes">
+<link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
+<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
+<div style="width:fit-content; background:red;">
+  <div style="display:inline-block; vertical-align:top; width:100px; height:100px; background:green;"></div>
+  <br>
+</div>