mirror of
https://github.com/servo/servo.git
synced 2025-09-30 16:49:16 +01:00
Move overflow_wrap_a.html to wpt reftests.
This commit is contained in:
parent
15fdd4d086
commit
c1228125a7
4 changed files with 25 additions and 1 deletions
|
@ -683,6 +683,18 @@
|
|||
"url": "/_mozilla/css/flex_nochild.html"
|
||||
}
|
||||
],
|
||||
"css/overflow_wrap_a.html": [
|
||||
{
|
||||
"path": "css/overflow_wrap_a.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/overflow_wrap_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/overflow_wrap_a.html"
|
||||
}
|
||||
],
|
||||
"css/overflow_xy_a.html": [
|
||||
{
|
||||
"path": "css/overflow_xy_a.html",
|
||||
|
@ -3348,6 +3360,18 @@
|
|||
"url": "/_mozilla/css/flex_nochild.html"
|
||||
}
|
||||
],
|
||||
"css/overflow_wrap_a.html": [
|
||||
{
|
||||
"path": "css/overflow_wrap_a.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/overflow_wrap_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/overflow_wrap_a.html"
|
||||
}
|
||||
],
|
||||
"css/overflow_xy_a.html": [
|
||||
{
|
||||
"path": "css/overflow_xy_a.html",
|
||||
|
|
23
tests/wpt/mozilla/tests/css/overflow_wrap_a.html
Normal file
23
tests/wpt/mozilla/tests/css/overflow_wrap_a.html
Normal file
|
@ -0,0 +1,23 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel='match' href='overflow_wrap_ref.html'>
|
||||
<!-- Tests that `overflow-wrap: break-word` breaks words if it needs to, but only when
|
||||
necessary. -->
|
||||
<link rel="stylesheet" type="text/css" href="css/ahem.css">
|
||||
<style>
|
||||
html, body {
|
||||
margin: 0;
|
||||
}
|
||||
section {
|
||||
word-wrap: break-word;
|
||||
width: 300px;
|
||||
color: purple;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<section>X XXXXXX</section>
|
||||
</body>
|
||||
</html>
|
||||
|
28
tests/wpt/mozilla/tests/css/overflow_wrap_ref.html
Normal file
28
tests/wpt/mozilla/tests/css/overflow_wrap_ref.html
Normal file
|
@ -0,0 +1,28 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<!-- Tests that `overflow-wrap: break-word` breaks words if it needs to, but only when
|
||||
necessary. -->
|
||||
<style>
|
||||
section, nav {
|
||||
background: purple;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
}
|
||||
section {
|
||||
width: 100px;
|
||||
top: 0;
|
||||
height: 100px;
|
||||
}
|
||||
nav {
|
||||
top: 100px;
|
||||
width: 300px;
|
||||
height: 200px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<section></section><nav></nav>
|
||||
</body>
|
||||
</html>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue