mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Update web-platform-tests to revision 093a97b6ecc6484c201d704d38b47bef1964d59d
This commit is contained in:
parent
16e4eb6964
commit
f9972c83e3
79 changed files with 1530 additions and 824 deletions
|
@ -8,9 +8,10 @@
|
|||
<meta name="assert" content="A Single leading white-space constitutes a soft breaking opportunity, honoring the 'white-space: pre-wrap' 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;
|
||||
|
@ -22,7 +23,6 @@ div {
|
|||
}
|
||||
.test {
|
||||
color: green;
|
||||
line-height: 1em;
|
||||
width: 5ch;
|
||||
|
||||
white-space: pre-wrap;
|
||||
|
|
|
@ -9,9 +9,10 @@
|
|||
<meta name="assert" content="A Single leading white-space constitutes a soft breaking opportunity, honoring the 'white-space: pre-wrap' 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;
|
||||
}
|
||||
.fail {
|
||||
position: absolute;
|
||||
|
@ -21,7 +22,6 @@ div {
|
|||
span { color: green; }
|
||||
.test {
|
||||
color: green;
|
||||
line-height: 1em;
|
||||
width: 5ch;
|
||||
|
||||
white-space: pre-wrap;
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<title>CSS Text Test: overflow-wrap: break-word</title>
|
||||
<link rel="author" title="Koji Ishii" href="kojii@chromium.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-overflow-wrap-break-word">
|
||||
<link rel="match" href="reference/overflow-wrap-break-word-span-001-ref.html">
|
||||
<meta name="assert" content="Test when the `break-word` value is applied to an inline element.">
|
||||
<style>
|
||||
div {
|
||||
font-size: 10px;
|
||||
line-height: 1;
|
||||
width: 8ch;
|
||||
}
|
||||
span {
|
||||
word-wrap: break-word;
|
||||
}
|
||||
</style>
|
||||
<div>12345<span>67890</span></div>
|
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<title>CSS Text Test: overflow-wrap: break-word</title>
|
||||
<link rel="author" title="Koji Ishii" href="kojii@chromium.org">
|
||||
<link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-overflow-wrap-break-word">
|
||||
<meta name="assert" content="Test when the `break-word` value is applied to an inline element.">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/check-layout-th.js"></script><style>
|
||||
div {
|
||||
font-size: 10px;
|
||||
line-height: 1;
|
||||
width: 5ch;
|
||||
}
|
||||
span {
|
||||
word-wrap: break-word;
|
||||
}
|
||||
</style>
|
||||
<div id=container data-expected-height=20>12345678<span>90</span></div>
|
||||
|
||||
<script>
|
||||
checkLayout('#container')
|
||||
</script>
|
|
@ -0,0 +1,8 @@
|
|||
<!DOCTYPE html>
|
||||
<style>
|
||||
div {
|
||||
font-size: 10px;
|
||||
line-height: 1;
|
||||
}
|
||||
</style>
|
||||
<div>12345678<br>90</div>
|
Loading…
Add table
Add a link
Reference in a new issue