aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/css/css-text
diff options
context:
space:
mode:
authorWPT Sync Bot <josh+wptsync@joshmatthews.net>2019-08-03 10:25:42 +0000
committerWPT Sync Bot <josh+wptsync@joshmatthews.net>2019-08-03 15:03:51 +0000
commitb68253eac07a8ca2903859b3148ac1c721930cc4 (patch)
treeda3408a7a8e2a1127b568a5b6ea98157632f3e9f /tests/wpt/web-platform-tests/css/css-text
parentecd32570c0d20b1cf9ea1711d2f819725f74ad17 (diff)
downloadservo-b68253eac07a8ca2903859b3148ac1c721930cc4.tar.gz
servo-b68253eac07a8ca2903859b3148ac1c721930cc4.zip
Update web-platform-tests to revision 097043b336e46876e281ddec3bb014fe9c480128
Diffstat (limited to 'tests/wpt/web-platform-tests/css/css-text')
-rw-r--r--tests/wpt/web-platform-tests/css/css-text/line-break/line-break-anywhere-001.html7
-rw-r--r--tests/wpt/web-platform-tests/css/css-text/line-break/reference/line-break-anywhere-001-ref.html4
-rw-r--r--tests/wpt/web-platform-tests/css/css-text/white-space/pre-line-br-with-whitespace-child-crash.html18
3 files changed, 25 insertions, 4 deletions
diff --git a/tests/wpt/web-platform-tests/css/css-text/line-break/line-break-anywhere-001.html b/tests/wpt/web-platform-tests/css/css-text/line-break/line-break-anywhere-001.html
index a031765b324..6ae60eadb9e 100644
--- a/tests/wpt/web-platform-tests/css/css-text/line-break/line-break-anywhere-001.html
+++ b/tests/wpt/web-platform-tests/css/css-text/line-break/line-break-anywhere-001.html
@@ -16,7 +16,7 @@
background: green;
font-family: monospace;
width: 1ch;
- height: 20em;
+ height: 19em;
}
#test {
width: 1ch;
@@ -25,9 +25,12 @@
font-family: monospace;
line-break: anywhere;
}
+span {
+ background: red;
+}
</style>
<p>Test passes if there is a green rectangle below and no red.</p>
<div id=green></div>
<!-- with line breaks everywhere, none of the following characters should stick out from under the green div -->
-<div id=test>aa-a.a)a,a)a&nbsp;a&#xfeff;a&#x2060;a&#x200d;a・a</div>
+<div id=test>aa-a.a)a,a)a<span>&nbsp;</span>a&#xfeff;a&#x2060;a&#x200d;a・a</div>
diff --git a/tests/wpt/web-platform-tests/css/css-text/line-break/reference/line-break-anywhere-001-ref.html b/tests/wpt/web-platform-tests/css/css-text/line-break/reference/line-break-anywhere-001-ref.html
index ff74b3bce2d..daf17c9c0aa 100644
--- a/tests/wpt/web-platform-tests/css/css-text/line-break/reference/line-break-anywhere-001-ref.html
+++ b/tests/wpt/web-platform-tests/css/css-text/line-break/reference/line-break-anywhere-001-ref.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+<!DOCTYPE html>
<html lang=en>
<meta charset="utf-8">
<title>CSS Text Test Reference</title>
@@ -9,7 +9,7 @@
background: green;
font-family: monospace;
width: 1ch;
- height: 20em;
+ height: 19em;
}
</style>
diff --git a/tests/wpt/web-platform-tests/css/css-text/white-space/pre-line-br-with-whitespace-child-crash.html b/tests/wpt/web-platform-tests/css/css-text/white-space/pre-line-br-with-whitespace-child-crash.html
new file mode 100644
index 00000000000..c7e1855f979
--- /dev/null
+++ b/tests/wpt/web-platform-tests/css/css-text/white-space/pre-line-br-with-whitespace-child-crash.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<title>CSS Text Test: Chrome pre-line crash test</title>
+<link rel="help" href="https://crbug.com/989827">
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<style>
+ br { white-space: pre-line }
+</style>
+<script>
+ test(() => {
+ document.documentElement.remove();
+ const br = document.createElement("br");
+ br.appendChild(document.createTextNode(""));
+ document.appendChild(br);
+ br.offsetTop;
+ br.firstChild.data = " ";
+ }, "Modifying data of a text child of a root br element with pre-line should not crash.");
+</script>