Update the CSS Text WPT test suite
authorjfernandez@igalia.com <jfernandez@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 29 Mar 2019 21:52:53 +0000 (21:52 +0000)
committerjfernandez@igalia.com <jfernandez@igalia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 29 Mar 2019 21:52:53 +0000 (21:52 +0000)
https://bugs.webkit.org/show_bug.cgi?id=196397

Reviewed by Manuel Rego Casasnovas.

Updated several tests from the CSS Text test suite.

* resources/resource-files.json:
* web-platform-tests/css/css-text/META.yml:
* web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-break-word-006.html:
* web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-break-word-007.html:
* web-platform-tests/css/css-text/white-space/break-spaces-004.html:
* web-platform-tests/css/css-text/white-space/break-spaces-005.html:
* web-platform-tests/css/css-text/white-space/break-spaces-006.html:
* web-platform-tests/css/css-text/white-space/break-spaces-007.html:
* web-platform-tests/css/css-text/white-space/break-spaces-008.html:
* web-platform-tests/css/css-text/white-space/pre-wrap-008.html:
* web-platform-tests/css/css-text/white-space/pre-wrap-015.html:
* web-platform-tests/css/css-text/white-space/pre-wrap-016.html:
* web-platform-tests/css/css-text/white-space/white-space-intrinsic-size-001-expected.html:
* web-platform-tests/css/css-text/white-space/white-space-intrinsic-size-001.html:
* web-platform-tests/css/css-text/white-space/white-space-intrinsic-size-002-expected.html:
* web-platform-tests/css/css-text/white-space/white-space-intrinsic-size-002.html:
* web-platform-tests/css/css-text/white-space/white-space-intrinsic-size-003-expected.html:
* web-platform-tests/css/css-text/white-space/white-space-intrinsic-size-003.html:
* web-platform-tests/css/css-text/white-space/white-space-intrinsic-size-004-expected.html:
* web-platform-tests/css/css-text/white-space/white-space-intrinsic-size-004.html:
* web-platform-tests/css/css-text/word-break/w3c-import.log:
* web-platform-tests/css/css-text/word-break/word-break-break-all-010.html:
* web-platform-tests/css/css-text/word-break/word-break-break-all-011.html:
* web-platform-tests/css/css-text/word-break/word-break-break-all-012.html:
* web-platform-tests/css/css-text/word-break/word-break-break-all-013.html:
* web-platform-tests/css/css-text/word-break/word-break-break-all-015.html:
* web-platform-tests/css/css-text/word-break/word-break-break-word-overflow-wrap-interactions-expected.html: Added.
* web-platform-tests/css/css-text/word-break/word-break-break-word-overflow-wrap-interactions.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@243664 268f45cc-cd09-0410-ab3c-d52691b4dbfc

29 files changed:
LayoutTests/TestExpectations
LayoutTests/imported/w3c/ChangeLog
LayoutTests/imported/w3c/web-platform-tests/css/css-text/META.yml
LayoutTests/imported/w3c/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-break-word-006.html
LayoutTests/imported/w3c/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-break-word-007.html
LayoutTests/imported/w3c/web-platform-tests/css/css-text/white-space/break-spaces-004.html
LayoutTests/imported/w3c/web-platform-tests/css/css-text/white-space/break-spaces-005.html
LayoutTests/imported/w3c/web-platform-tests/css/css-text/white-space/break-spaces-006.html
LayoutTests/imported/w3c/web-platform-tests/css/css-text/white-space/break-spaces-007.html
LayoutTests/imported/w3c/web-platform-tests/css/css-text/white-space/break-spaces-008.html
LayoutTests/imported/w3c/web-platform-tests/css/css-text/white-space/pre-wrap-008.html
LayoutTests/imported/w3c/web-platform-tests/css/css-text/white-space/pre-wrap-015.html
LayoutTests/imported/w3c/web-platform-tests/css/css-text/white-space/pre-wrap-016.html
LayoutTests/imported/w3c/web-platform-tests/css/css-text/white-space/white-space-intrinsic-size-001-expected.html
LayoutTests/imported/w3c/web-platform-tests/css/css-text/white-space/white-space-intrinsic-size-001.html
LayoutTests/imported/w3c/web-platform-tests/css/css-text/white-space/white-space-intrinsic-size-002-expected.html
LayoutTests/imported/w3c/web-platform-tests/css/css-text/white-space/white-space-intrinsic-size-002.html
LayoutTests/imported/w3c/web-platform-tests/css/css-text/white-space/white-space-intrinsic-size-003-expected.html
LayoutTests/imported/w3c/web-platform-tests/css/css-text/white-space/white-space-intrinsic-size-003.html
LayoutTests/imported/w3c/web-platform-tests/css/css-text/white-space/white-space-intrinsic-size-004-expected.html
LayoutTests/imported/w3c/web-platform-tests/css/css-text/white-space/white-space-intrinsic-size-004.html
LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/w3c-import.log
LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-010.html
LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-011.html
LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-012.html
LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-013.html
LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-015.html
LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-word-overflow-wrap-interactions-expected.html [new file with mode: 0644]
LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-word-overflow-wrap-interactions.html [new file with mode: 0644]

index e135f98..ad3148e 100644 (file)
@@ -1904,14 +1904,7 @@ webkit.org/b/195275 imported/w3c/web-platform-tests/css/css-text/line-break/line
 webkit.org/b/195275 imported/w3c/web-platform-tests/css/css-text/line-break/line-break-loose-017a.xht [ ImageOnlyFailure ]
 webkit.org/b/195275 imported/w3c/web-platform-tests/css/css-text/line-break/line-break-loose-014.xht [ ImageOnlyFailure ]
 webkit.org/b/195275 imported/w3c/web-platform-tests/css/css-text/line-break/line-break-loose-015.xht [ ImageOnlyFailure ]
-webkit.org/b/195275 imported/w3c/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-anywhere-001.html [ ImageOnlyFailure ]
-webkit.org/b/195275 imported/w3c/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-anywhere-003.html [ ImageOnlyFailure ]
-webkit.org/b/195275 imported/w3c/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-min-content-size-003.html [ ImageOnlyFailure ]
-webkit.org/b/195275 imported/w3c/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-anywhere-005.html [ ImageOnlyFailure ]
-webkit.org/b/195275 imported/w3c/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-anywhere-span-001.html [ ImageOnlyFailure ]
-webkit.org/b/195275 imported/w3c/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-min-content-size-002.html [ ImageOnlyFailure ]
 webkit.org/b/195275 imported/w3c/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-break-word-006.html [ ImageOnlyFailure ]
-webkit.org/b/195275 imported/w3c/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-anywhere-002.html [ ImageOnlyFailure ]
 webkit.org/b/195275 imported/w3c/web-platform-tests/css/css-text/tab-size/tab-size-spacing-001.html [ ImageOnlyFailure ]
 webkit.org/b/195275 imported/w3c/web-platform-tests/css/css-text/tab-size/tab-min-rendered-width-1.html [ ImageOnlyFailure ]
 webkit.org/b/195275 imported/w3c/web-platform-tests/css/css-text/tab-size/tab-size-inheritance-001.html [ ImageOnlyFailure ]
@@ -1970,6 +1963,22 @@ webkit.org/b/186045 imported/w3c/web-platform-tests/css/css-animations/animation
 webkit.org/b/186045 imported/w3c/web-platform-tests/css/css-animations/animation-delay-009.html [ ImageOnlyFailure Pass ]
 webkit.org/b/186045 imported/w3c/web-platform-tests/css/css-animations/animation-delay-010.html [ ImageOnlyFailure ]
 
+# overflow-wrap:anywhere feature is not implemented yet.
+webkit.org/b/195345 imported/w3c/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-anywhere-001.html [ Skip ]
+webkit.org/b/195345 imported/w3c/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-anywhere-002.html [ Skip ]
+webkit.org/b/195345 imported/w3c/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-anywhere-003.html [ Skip ]
+webkit.org/b/195345 imported/w3c/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-anywhere-004.html [ Skip ]
+webkit.org/b/195345 imported/w3c/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-anywhere-005.html [ Skip ]
+webkit.org/b/195345 imported/w3c/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-anywhere-span-001.html [ Skip ]
+webkit.org/b/195345 imported/w3c/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-anywhere-span-002.html [ Skip ]
+webkit.org/b/195345 imported/w3c/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-anywhere-fit-content-001.html [ Skip ]
+webkit.org/b/195345 imported/w3c/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-min-content-size-001.html [ Skip ]
+webkit.org/b/195345 imported/w3c/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-min-content-size-002.html [ Skip ]
+webkit.org/b/195345 imported/w3c/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-min-content-size-003.html [ Skip ]
+webkit.org/b/195345 imported/w3c/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-min-content-size-004.html [ Skip ]
+webkit.org/b/195345 imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-word-overflow-wrap-interactions.html [ Skip ]
+
+
 ########################################
 ### START OF display: contents failures
 
@@ -2959,7 +2968,6 @@ imported/w3c/web-platform-tests/css/css-display/run-in/run-in-fixedpos-between-0
 imported/w3c/web-platform-tests/css/css-pseudo/placeholder-input-number.html [ ImageOnlyFailure ]
 imported/w3c/web-platform-tests/css/css-text-decor/text-emphasis-position-below-right-002.xht [ ImageOnlyFailure ]
 imported/w3c/web-platform-tests/css/css-display/run-in/quotes-applies-to-011.xht [ ImageOnlyFailure ]
-imported/w3c/web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-min-content-size-001.html [ ImageOnlyFailure ]
 imported/w3c/web-platform-tests/css/css-display/run-in/run-in-basic-012.xht [ ImageOnlyFailure ]
 imported/w3c/web-platform-tests/css/cssom-view/scroll-behavior-smooth.html [ Skip ]
 imported/w3c/web-platform-tests/css/css-shapes/shape-outside/shape-image/gradients/shape-outside-linear-gradient-006.html [ ImageOnlyFailure ]
index 4c0ceb3..04b9aca 100644 (file)
@@ -1,3 +1,41 @@
+2019-03-29  Javier Fernandez  <jfernandez@igalia.com>
+
+        Update the CSS Text WPT test suite
+        https://bugs.webkit.org/show_bug.cgi?id=196397
+
+        Reviewed by Manuel Rego Casasnovas.
+
+        Updated several tests from the CSS Text test suite.
+
+        * resources/resource-files.json:
+        * web-platform-tests/css/css-text/META.yml:
+        * web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-break-word-006.html:
+        * web-platform-tests/css/css-text/overflow-wrap/overflow-wrap-break-word-007.html:
+        * web-platform-tests/css/css-text/white-space/break-spaces-004.html:
+        * web-platform-tests/css/css-text/white-space/break-spaces-005.html:
+        * web-platform-tests/css/css-text/white-space/break-spaces-006.html:
+        * web-platform-tests/css/css-text/white-space/break-spaces-007.html:
+        * web-platform-tests/css/css-text/white-space/break-spaces-008.html:
+        * web-platform-tests/css/css-text/white-space/pre-wrap-008.html:
+        * web-platform-tests/css/css-text/white-space/pre-wrap-015.html:
+        * web-platform-tests/css/css-text/white-space/pre-wrap-016.html:
+        * web-platform-tests/css/css-text/white-space/white-space-intrinsic-size-001-expected.html:
+        * web-platform-tests/css/css-text/white-space/white-space-intrinsic-size-001.html:
+        * web-platform-tests/css/css-text/white-space/white-space-intrinsic-size-002-expected.html:
+        * web-platform-tests/css/css-text/white-space/white-space-intrinsic-size-002.html:
+        * web-platform-tests/css/css-text/white-space/white-space-intrinsic-size-003-expected.html:
+        * web-platform-tests/css/css-text/white-space/white-space-intrinsic-size-003.html:
+        * web-platform-tests/css/css-text/white-space/white-space-intrinsic-size-004-expected.html:
+        * web-platform-tests/css/css-text/white-space/white-space-intrinsic-size-004.html:
+        * web-platform-tests/css/css-text/word-break/w3c-import.log:
+        * web-platform-tests/css/css-text/word-break/word-break-break-all-010.html:
+        * web-platform-tests/css/css-text/word-break/word-break-break-all-011.html:
+        * web-platform-tests/css/css-text/word-break/word-break-break-all-012.html:
+        * web-platform-tests/css/css-text/word-break/word-break-break-all-013.html:
+        * web-platform-tests/css/css-text/word-break/word-break-break-all-015.html:
+        * web-platform-tests/css/css-text/word-break/word-break-break-word-overflow-wrap-interactions-expected.html: Added.
+        * web-platform-tests/css/css-text/word-break/word-break-break-word-overflow-wrap-interactions.html: Added.
+
 2019-03-29  Chris Dumez  <cdumez@apple.com>
 
         Set window.closed immediately when close() is invoked
index 6dc1b4d..806457d 100644 (file)
@@ -9,9 +9,10 @@
 <meta name="assert" content="A Single leading white-space constitutes a soft breaking opportunity, honoring the 'white-space: break-spaces' property, that must prevent the word to be broken.">
 <style>
 div {
-   position: relative;
-   font-size: 20px;
-   font-family: Ahem;
+  position: relative;
+  font-size: 20px;
+  font-family: Ahem;
+  line-height: 1em;
 }
 .red {
   position: absolute;
@@ -23,8 +24,8 @@ div {
 }
 .test {
   color: green;
-  line-height: 1em;
   width: 5ch;
+
   white-space: break-spaces;
   overflow-wrap: break-word;
 }
index 261f781..0491b92 100644 (file)
@@ -9,10 +9,9 @@
 <meta name="assert" content="A Single leading white-space constitutes a soft breaking opportunity, honoring the 'white-space: break-spaces' property, that must prevent the word to be broken.">
 <style>
 div {
-  position: relative;
-  font-size: 20px;
-  font-family: Ahem;
-  line-height: 1em;
+   position: relative;
+   font-size: 20px;
+   font-family: Ahem;
 }
 .red {
   position: absolute;
@@ -25,6 +24,7 @@ div {
 }
 .test {
   color: green;
+  line-height: 1em;
   width: 5ch;
 
   white-space: pre-wrap;
index e2c043e..13770b7 100644 (file)
@@ -11,8 +11,8 @@
 <meta name="assert" content="The word is not broken if there are previous breaking opportunities, honoring the 'white-space: break-spaces' value.">
 <style>
 div {
-   position: relative;
-   font: 20px/1 Ahem;
+  position: relative;
+  font: 20px/1 Ahem;
 }
 .fail {
   position: absolute;
index d0dafd3..c7f996f 100644 (file)
@@ -9,8 +9,8 @@
 <meta name="assert" content="If 'white-space' is set to 'break-spaces', collapsing preserved white-spaces' advance width is not allowed, so that they can be wrapped honoring the 'white-space' propery.">
 <style>
 div {
-   position: relative;
-   font: 10px/1 Ahem;
+  position: relative;
+  font: 10px/1 Ahem;
 }
 .fail {
   position: absolute;
index 5f9d605..f397316 100644 (file)
@@ -11,8 +11,8 @@
 <meta name="assert" content="White spaces are preserved, honoring the 'white-space: break-spaces', but the words are broken, honring the 'word-beak: break-all' even though there are previous breaking opportunities in the white-spaces.">
 <style>
 div {
-   position: relative;
-   font: 25px/1 Ahem;
+  position: relative;
+  font: 25px/1 Ahem;
 }
 .fail {
   position: absolute;
index 7721361..d14aae7 100644 (file)
@@ -11,8 +11,8 @@
 <meta name="assert" content="A single leading white-space should be used, honoring white-space: break-spaces, to avoid overflow; however, a single preserved white-space at the end of the line cannot be wrapped, hence it hangs when breaking after it to move the rest of the text to the next line.">
 <style>
 div {
-   position: relative;
-   font: 25px/1 Ahem;
+  position: relative;
+  font: 25px/1 Ahem;
 }
 .fail {
   position: absolute;
index d183cac..7bcb9dd 100644 (file)
@@ -11,8 +11,8 @@
 <meta name="assert" content="White spaces are preserved, honoring the 'white-space: break-spaces', which may lead to overfow. However, we can break before the first white-space after the word honoring the 'break-all' value.">
 <style>
 div {
-   position: relative;
-   font: 25px/1 Ahem;
+  position: relative;
+  font: 25px/1 Ahem;
 }
 .fail {
   position: absolute;
index a360bdc..1ddbb7f 100644 (file)
@@ -9,10 +9,9 @@
 <meta name="assert" content="The word is not broken despite the 'word-break: break-word' if there are previous breaking opportunities, honoring the white-space: pre-wrap value.">
 <style>
 div {
-  position: relative;
-  font-size: 20px;
-  font-family: Ahem;
-  line-height: 1em;
+   position: relative;
+   font-size: 20px;
+   font-family: Ahem;
 }
 .red {
   position: absolute;
@@ -25,6 +24,7 @@ div {
 }
 .test {
   color: green;
+  line-height: 1em;
   width: 5ch;
 
   white-space: pre-wrap;
index b17af29..176259b 100644 (file)
@@ -9,8 +9,8 @@
 <meta name="assert" content="The text is broken at the end of the space between the two words, never before, so it hangs and cause an overflow">
 <style>
 div {
-   position: relative;
-   font: 20px/1 Ahem;
+  position: relative;
+  font: 20px/1 Ahem;
 }
 .ref {
   position: absolute;
index 5f66a7b..e88c3ed 100644 (file)
@@ -12,6 +12,7 @@ div {
    position: relative;
    font-size: 20px;
    font-family: Ahem;
+   line-height: 1em;
 }
 .red {
   position: absolute;
@@ -24,7 +25,6 @@ div {
 }
 .test {
   color: green;
-  line-height: 1em;
   width: 2ch;
 
   white-space: pre-wrap;
index 21c0bd6..510a5c5 100644 (file)
@@ -17,7 +17,7 @@ aside {
 aside:last-of-type { overflow-wrap: break-word; }
 div {
   color: transparent;
-  font-family: monospace;
+  font-family: Ahem;
   font-size: 50px;
   width: 3ch; /* enough room for both floats if their max-content size does not include the preserved spaces,
                 but not enough if they do, causing a line break in that case. */
index ee480b5..cd6fa2b 100644 (file)
@@ -46,6 +46,8 @@ List of files:
 /LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-015.html
 /LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-020-expected.html
 /LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-all-020.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-word-overflow-wrap-interactions-expected.html
+/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-word-overflow-wrap-interactions.html
 /LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-keep-all-000-expected.html
 /LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-keep-all-000.html
 /LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-keep-all-001-expected.html
index fade439..74ca605 100644 (file)
@@ -21,10 +21,11 @@ div {
   width: 100px;
   height: 100px;
   z-index: -1;
+  white-space: pre;
 }
+span { color: green; }
 .test {
   color: green;
-  background: green;
   width: 1ch;
   white-space: pre-wrap;
   word-break: break-all;
@@ -32,6 +33,6 @@ div {
 </style>
 <body>
   <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
-  <div class="red">X<br>X<br>X</div>
+  <div class="red"> <br>X<br>X</div>
   <div class="test"> XX</div>
 </body>
index cd3d440..fd3b12e 100644 (file)
@@ -1,6 +1,6 @@
 <!DOCTYPE html>
 <meta charset="utf-8">
-<title>CSS Text Test: overflow-wrap: break-word</title>
+<title>CSS Text Test: word-break: break-all</title>
 <link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
 <link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-word-break-break-all">
 <link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-white-space-break-spaces">
@@ -9,22 +9,22 @@
 <meta name="assert" content="The word is broken even if white-space: break-spaces provides a former breaking opportunity in leading white-space.">
 <style>
 div {
-   position: relative;
-   font-size: 20px;
-   font-family: Ahem;
+  position: relative;
+  font-size: 20px;
+  font-family: Ahem;
+  line-height: 1em;
 }
 .red {
   position: absolute;
-  white-space: pre;
   background: green;
   color: red;
   width: 100px;
   height: 100px;
   z-index: -1;
+  white-space: pre;
 }
 .test {
   color: green;
-  line-height: 1em;
   width: 5ch;
 
   white-space: break-spaces;
index 85dce08..9eff25c 100644 (file)
@@ -9,9 +9,10 @@
 <meta name="assert" content="A single leading white-space should account as soft breaking opportunity, honoring the 'white-space: break-spaces', on top to the ones provided by 'word-break: break-all'.">
 <style>
 div {
-   position: relative;
-   font-size: 20px;
-   font-family: Ahem;
+  position: relative;
+  font-size: 20px;
+  font-family: Ahem;
+  line-height: 1em;
 }
 .red {
   position: absolute;
@@ -20,11 +21,10 @@ div {
   width: 100px;
   height: 100px;
   z-index: -1;
+  white-space: pre;
 }
 .test {
   color: green;
-  background: green;
-  line-height: 1em;
   width: 1ch;
   white-space: break-spaces;
   word-break: break-all;
@@ -32,6 +32,6 @@ div {
 </style>
 <body>
   <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p>
-  <div class="red">X<br>X<br>X</div>
+  <div class="red"> <br>X<br>X</div>
   <div class="test"> XX</div>
 </body>
index d9645be..9602a1f 100644 (file)
@@ -9,10 +9,9 @@
 <meta name="assert" content="The word is broken even if white-space: pre-wrap provides a former breaking opportunity in leading white-space.">
 <style>
 div {
-  position: relative;
-  font-size: 20px;
-  font-family: Ahem;
-  line-height: 1em;
+   position: relative;
+   font-size: 20px;
+   font-family: Ahem;
 }
 .red {
   position: absolute;
@@ -25,6 +24,7 @@ div {
 }
 .test {
   color: green;
+  line-height: 1em;
   width: 5ch;
 
   white-space: pre-wrap;
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-word-overflow-wrap-interactions-expected.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-word-overflow-wrap-interactions-expected.html
new file mode 100644 (file)
index 0000000..3c6ab38
--- /dev/null
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<title>CSS Test: word-break: break-word and overflow-wrap interaction</title>
+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1296042">
+<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
+<style>
+  div {
+    float: left;
+    width: 100px;
+    height: 100px;
+    border: 1px solid black;
+    margin: 10px;
+    overflow-wrap: anywhere;
+  }
+</style>
+<p>The boxes below should look the same.</p>
+<div>FillerFillerFillerFiller</div>
+<div>FillerFillerFillerFiller</div>
+<div>FillerFillerFillerFiller</div>
diff --git a/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-word-overflow-wrap-interactions.html b/LayoutTests/imported/w3c/web-platform-tests/css/css-text/word-break/word-break-break-word-overflow-wrap-interactions.html
new file mode 100644 (file)
index 0000000..b4d3720
--- /dev/null
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<title>CSS Test: word-break: break-word and overflow-wrap interaction</title>
+<link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1296042">
+<link rel="help" href="https://drafts.csswg.org/css-text/#propdef-word-break">
+<link rel="help" href="https://drafts.csswg.org/css-text/#propdef-overflow-wrap">
+<link rel="help" href="https://drafts.csswg.org/css-text/#valdef-overflow-wrap-anywhere">
+<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
+<link rel="match" href="word-break-break-word-overflow-wrap-interactions-ref.html">
+<style>
+  div {
+    float: left;
+    width: 100px;
+    height: 100px;
+    border: 1px solid black;
+    margin: 10px;
+  }
+</style>
+<p>The boxes below should look the same.</p>
+<div style="word-break: break-word; overflow-wrap: anywhere;">FillerFillerFillerFiller</div>
+<div style="word-break: break-word; overflow-wrap: break-word;">FillerFillerFillerFiller</div>
+<div style="word-break: break-word; overflow-wrap: normal;">FillerFillerFillerFiller</div>