Bug 1467079 [wpt PR 11366] - [css-text-3] Add test for intrinsic sizing and overflow-wrap, a=testonly
authorFlorian Rivoal <git@florian.rivoal.net>
Tue, 26 Jun 2018 02:39:46 +0000
changeset 424252 d005f856d29ee842538bdc7cd912c8dce517e555
parent 424251 da9ee28cf28d560fb691c56086413f5328daf317
child 424253 d106e24e89840e8fb034d6afb63e76e9b94251cc
push id104753
push userarchaeopteryx@coole-files.de
push dateThu, 28 Jun 2018 12:34:45 +0000
treeherdermozilla-inbound@fe94281f7c25 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1467079, 11366
milestone63.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 1467079 [wpt PR 11366] - [css-text-3] Add test for intrinsic sizing and overflow-wrap, a=testonly Automatic update from web-platform-testsMerge pull request #11366 from frivoal/css-text-2682 [css-text-3] Add test for intrinsic sizing and overflow-wrap -- wpt-commits: e89577697adb828fcdad54d27a15524dd125149d wpt-pr: 11366
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/css/css-text/overflow-wrap/overflow-wrap-min-content-size-001.html
testing/web-platform/tests/css/css-text/overflow-wrap/reference/overflow-wrap-min-content-size-001-ref.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -134696,16 +134696,28 @@
       [
        "/css/css-text/overflow-wrap/reference/overflow-wrap-break-word-fit-content-001.html",
        "=="
       ]
      ],
      {}
     ]
    ],
+   "css/css-text/overflow-wrap/overflow-wrap-min-content-size-001.html": [
+    [
+     "/css/css-text/overflow-wrap/overflow-wrap-min-content-size-001.html",
+     [
+      [
+       "/css/css-text/overflow-wrap/reference/overflow-wrap-min-content-size-001-ref.html",
+       "=="
+      ]
+     ],
+     {}
+    ]
+   ],
    "css/css-text/overflow-wrap/word-wrap-001.html": [
     [
      "/css/css-text/overflow-wrap/word-wrap-001.html",
      [
       [
        "/css/css-text/overflow-wrap/overflow-wrap-001-ref.html",
        "=="
       ]
@@ -256614,16 +256626,21 @@
      {}
     ]
    ],
    "css/css-text/overflow-wrap/reference/overflow-wrap-break-word-fit-content-001.html": [
     [
      {}
     ]
    ],
+   "css/css-text/overflow-wrap/reference/overflow-wrap-min-content-size-001-ref.html": [
+    [
+     {}
+    ]
+   ],
    "css/css-text/support/1x1-green.png": [
     [
      {}
     ]
    ],
    "css/css-text/support/1x1-lime.png": [
     [
      {}
@@ -528905,32 +528922,40 @@
   "css/css-text/overflow-wrap/overflow-wrap-break-word-003.html": [
    "f25e1224db7f54d5a816b2ec4568ffd626e7ebb1",
    "reftest"
   ],
   "css/css-text/overflow-wrap/overflow-wrap-break-word-fit-content-001.html": [
    "9f88a667825f8cb725dc348e17081e1a25b3f4de",
    "reftest"
   ],
+  "css/css-text/overflow-wrap/overflow-wrap-min-content-size-001.html": [
+   "5858dbb88a775bb8975f338d866b6fc837485364",
+   "reftest"
+  ],
   "css/css-text/overflow-wrap/reference/overflow-wrap-break-word-001-ref.html": [
    "0b16a0bdb25ddd647ad96dd82e3430274667ee87",
    "support"
   ],
   "css/css-text/overflow-wrap/reference/overflow-wrap-break-word-002-ref.html": [
    "e049fce2e9861c0386d47dced6f5ab15fb989063",
    "support"
   ],
   "css/css-text/overflow-wrap/reference/overflow-wrap-break-word-003-ref.html": [
    "65ef737bff7a7e5a2e9f744d2ea4838affc897de",
    "support"
   ],
   "css/css-text/overflow-wrap/reference/overflow-wrap-break-word-fit-content-001.html": [
    "7daf4c0482ae02fdd5a6855b3f750e664373efcd",
    "support"
   ],
+  "css/css-text/overflow-wrap/reference/overflow-wrap-min-content-size-001-ref.html": [
+   "f3e09183b565f71e38158cc5cd4d96ab5fbf25d4",
+   "support"
+  ],
   "css/css-text/overflow-wrap/word-wrap-001.html": [
    "8bafc4d48bbfee1e6c465a95b29792ba33c30346",
    "reftest"
   ],
   "css/css-text/overflow-wrap/word-wrap-002.html": [
    "1fc206422060160f3d987240f5fc946e7f8f2341",
    "reftest"
   ],
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-text/overflow-wrap/overflow-wrap-min-content-size-001.html
@@ -0,0 +1,41 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Text Test: overflow-wrap: break-word and intrinsic sizing</title>
+<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
+<link rel="help" href="https://drafts.csswg.org/css-text-3/#overflow-wrap-property">
+<meta name="flags" content="">
+<link rel="match" href="reference/overflow-wrap-min-content-size-001-ref.html">
+<meta name="assert" content="Soft wrap opportunities introduced by overflow-wrap:break-word **are** considered when calculating min-content intrinsic sizes.">
+<style>
+table {
+  overflow-wrap: break-word;
+  max-width: 0;
+  border: 0;
+  border-collapse: collapse;
+}
+td {
+  padding: 0;
+  background: green;
+  color: transparent;
+}
+#red {
+  position: absolute;
+  z-index: -1;
+  background: red;
+  color: transparent;
+}
+</style>
+
+<p>Test passes if there is a green box below and no red.
+<div id=red>X<br>X<br>X<br>X</div>
+<table><tr><td>XXXX</table>
+
+<!--
+  width:min-content on the div directly without using a table
+  would achieve the goal of this test, and be a lot simpler.
+
+  However, width:min-content is not yet widely supported.
+
+  Using a table, and forcing it to be as small as possible
+  will achieve min-content sizing of the div in all browsers.
+-->
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/css/css-text/overflow-wrap/reference/overflow-wrap-min-content-size-001-ref.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<meta charset="utf-8">
+<title>CSS Text Test reference</title>
+<link rel="author" title="Florian Rivoal" href="http://florian.rivoal.net/">
+<style>
+div {
+  position: absolute;
+  background: green;
+  color: transparent;
+}
+</style>
+
+<p>Test passes if there is a green box below and no red.
+<div>X<br>X<br>X<br>X</div>