Move linear_gradients_parsing_a.html to wpt reftests.

This commit is contained in:
Corey Farwell 2015-10-19 18:34:07 -04:00
parent eb3d4b0dc8
commit 93d9fe3d8a
4 changed files with 25 additions and 1 deletions

View file

@ -971,6 +971,18 @@
"url": "/_mozilla/css/linear_gradients_lengths_a.html"
}
],
"css/linear_gradients_parsing_a.html": [
{
"path": "css/linear_gradients_parsing_a.html",
"references": [
[
"/_mozilla/css/linear_gradients_parsing_ref.html",
"=="
]
],
"url": "/_mozilla/css/linear_gradients_parsing_a.html"
}
],
"css/max_width_float_simple_a.html": [
{
"path": "css/max_width_float_simple_a.html",
@ -4368,6 +4380,18 @@
"url": "/_mozilla/css/linear_gradients_lengths_a.html"
}
],
"css/linear_gradients_parsing_a.html": [
{
"path": "css/linear_gradients_parsing_a.html",
"references": [
[
"/_mozilla/css/linear_gradients_parsing_ref.html",
"=="
]
],
"url": "/_mozilla/css/linear_gradients_parsing_a.html"
}
],
"css/max_width_float_simple_a.html": [
{
"path": "css/max_width_float_simple_a.html",

View file

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html>
<head>
<link rel='match' href='linear_gradients_parsing_ref.html'>
<!-- Tests that parsing linear gradients works. -->
<style>
section {
display: block;
width: 100px;
height: 100px;
border: solid black 1px;
}
#a {
background: linear-gradient(to left, red, red);
}
#b {
background: linear-gradient(#abacab, #abacab);
}
#c {
background: linear-gradient(90deg, violet, violet 1em, violet 2ex, violet 50%, blue 50%, blue, blue);
}
</style>
</head>
<body>
<section id=a></section>
<section id=b></section>
<section id=c></section>
</body>
</html>

View file

@ -0,0 +1,43 @@
<!DOCTYPE html>
<html>
<head>
<!-- Tests that parsing linear gradients works. -->
<style>
section {
display: block;
width: 100px;
height: 100px;
border: solid black 1px;
position: relative;
}
#a {
background: red;
}
#b {
background: #abacab;
}
nav {
display: block;
width: 50%;
height: 100%;
position: absolute;
}
#ca {
background: violet;
left: 0;
}
#cb {
background: blue;
right: 0;
}
</style>
</head>
<body>
<section id=a></section>
<section id=b></section>
<section id=c>
<nav id=ca></nav>
<nav id=cb></nav>
</section>
</body>
</html>