Move overflow_wrap_a.html to wpt reftests.

This commit is contained in:
Corey Farwell 2015-10-16 18:52:55 -04:00
parent 15fdd4d086
commit c1228125a7
4 changed files with 25 additions and 1 deletions

View file

@ -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",

View 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>

View 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>