mirror of
https://github.com/servo/servo.git
synced 2025-10-01 00:59:15 +01:00
Move word_break_a.html to wpt reftests.
This commit is contained in:
parent
f407142656
commit
0755f21517
4 changed files with 25 additions and 1 deletions
|
@ -2171,6 +2171,18 @@
|
|||
"url": "/_mozilla/css/word-spacing.html"
|
||||
}
|
||||
],
|
||||
"css/word_break_a.html": [
|
||||
{
|
||||
"path": "css/word_break_a.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/word_break_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/word_break_a.html"
|
||||
}
|
||||
],
|
||||
"mozilla/canvas/drawimage_html_image_1.html": [
|
||||
{
|
||||
"path": "mozilla/canvas/drawimage_html_image_1.html",
|
||||
|
@ -5064,6 +5076,18 @@
|
|||
"url": "/_mozilla/css/word-spacing.html"
|
||||
}
|
||||
],
|
||||
"css/word_break_a.html": [
|
||||
{
|
||||
"path": "css/word_break_a.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/word_break_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/word_break_a.html"
|
||||
}
|
||||
],
|
||||
"mozilla/canvas/drawimage_html_image_1.html": [
|
||||
{
|
||||
"path": "mozilla/canvas/drawimage_html_image_1.html",
|
||||
|
|
22
tests/wpt/mozilla/tests/css/word_break_a.html
Normal file
22
tests/wpt/mozilla/tests/css/word_break_a.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='word_break_ref.html'>
|
||||
<!-- Tests that `word-break: break-all` works. -->
|
||||
<link rel="stylesheet" type="text/css" href="css/ahem.css">
|
||||
<style>
|
||||
html, body {
|
||||
margin: 0;
|
||||
}
|
||||
section {
|
||||
word-break: break-all;
|
||||
width: 300px;
|
||||
color: purple;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<section>X XXXXXXX</section>
|
||||
</body>
|
||||
</html>
|
||||
|
34
tests/wpt/mozilla/tests/css/word_break_ref.html
Normal file
34
tests/wpt/mozilla/tests/css/word_break_ref.html
Normal file
|
@ -0,0 +1,34 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<!-- Tests that `word-break: break-all` works. -->
|
||||
<style>
|
||||
div {
|
||||
background: purple;
|
||||
position: absolute;
|
||||
}
|
||||
#a {
|
||||
width: 100px;
|
||||
left: 0;
|
||||
top: 0;
|
||||
height: 100px;
|
||||
}
|
||||
#b {
|
||||
left: 200px;
|
||||
top: 0;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
#c {
|
||||
left: 0;
|
||||
top: 100px;
|
||||
width: 300px;
|
||||
height: 200px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id=a></div><div id=b></div><div id=c></div>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue