mirror of
https://github.com/servo/servo.git
synced 2025-09-30 16:49:16 +01:00
Move linear_gradients_parsing_a.html to wpt reftests.
This commit is contained in:
parent
eb3d4b0dc8
commit
93d9fe3d8a
4 changed files with 25 additions and 1 deletions
|
@ -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",
|
||||
|
|
29
tests/wpt/mozilla/tests/css/linear_gradients_parsing_a.html
Normal file
29
tests/wpt/mozilla/tests/css/linear_gradients_parsing_a.html
Normal 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>
|
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue