mirror of
https://github.com/servo/servo.git
synced 2025-08-11 08:25:32 +01:00
Update web-platform-tests to revision 097043b336e46876e281ddec3bb014fe9c480128
This commit is contained in:
parent
ecd32570c0
commit
b68253eac0
405 changed files with 9164 additions and 3050 deletions
|
@ -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 aa⁠a‍a・a</div>
|
||||
<div id=test>aa-a.a)a,a)a<span> </span>aa⁠a‍a・a</div>
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue