tests: Add test that ensures we properly parse the color red
This commit is contained in:
@ -34,6 +34,8 @@ EXTRA_DIST += \
|
||||
close-at-end-of-file.css \
|
||||
close-at-end-of-file.errors \
|
||||
close-at-end-of-file.ref.css \
|
||||
colors-red.css \
|
||||
colors-red.ref.css \
|
||||
css-21-malformed-declarations.css \
|
||||
css-21-malformed-declarations.errors \
|
||||
css-21-malformed-declarations.ref.css \
|
||||
|
||||
59
tests/css/parser/colors-red.css
Normal file
59
tests/css/parser/colors-red.css
Normal file
@ -0,0 +1,59 @@
|
||||
a {
|
||||
rgba-property: red;
|
||||
}
|
||||
|
||||
b {
|
||||
rgba-property: rgba(255,0,0,1.0);
|
||||
}
|
||||
|
||||
c {
|
||||
rgba-property: rgb(255,0,0);
|
||||
}
|
||||
|
||||
d {
|
||||
rgba-property: rgba(100%,0%,0%,1);
|
||||
}
|
||||
|
||||
e {
|
||||
rgba-property: rgb(100%,0,0);
|
||||
}
|
||||
|
||||
f {
|
||||
rgba-property: #f00;
|
||||
}
|
||||
|
||||
g {
|
||||
rgba-property: #ff0000;
|
||||
}
|
||||
|
||||
h {
|
||||
rgba-property: #F00;
|
||||
}
|
||||
|
||||
i {
|
||||
rgba-property: #fF0000;
|
||||
}
|
||||
|
||||
j {
|
||||
rgba-property: rgba( 255 , 0 , 0 , 1 ) ;
|
||||
}
|
||||
|
||||
k {
|
||||
rgba-property: rgb( 255 , 0 , 0 ) ;
|
||||
}
|
||||
|
||||
l {
|
||||
rgba-property:/*x*/rgba(/*x*/255/*x*/,/*x*/0/*x*/,/*x*/0/*x*/,/*x*/1/*x*/)/*x*/;
|
||||
}
|
||||
|
||||
m {
|
||||
rgba-property:/*x*/rgb(/*x*/255/*x*/,/*x*/0/*x*/,/*x*/0/*x*/)/*x*/;
|
||||
}
|
||||
|
||||
n {
|
||||
rgba-property: /*x*/ rgba( /*x*/ 255 /*x*/ , /*x*/ 0 /*x*/ , /*x*/ 0 /*x*/ , /*x*/ 1 /*x*/ ) /*x*/ ;
|
||||
}
|
||||
|
||||
o {
|
||||
rgba-property: /*x*/ rgb( /*x*/ 255 /*x*/ , /*x*/ 0 /*x*/ , /*x*/ 0 /*x*/ ) /*x*/ ;
|
||||
}
|
||||
59
tests/css/parser/colors-red.ref.css
Normal file
59
tests/css/parser/colors-red.ref.css
Normal file
@ -0,0 +1,59 @@
|
||||
a {
|
||||
rgba-property: rgb(255,0,0);
|
||||
}
|
||||
|
||||
b {
|
||||
rgba-property: rgb(255,0,0);
|
||||
}
|
||||
|
||||
c {
|
||||
rgba-property: rgb(255,0,0);
|
||||
}
|
||||
|
||||
d {
|
||||
rgba-property: rgb(255,0,0);
|
||||
}
|
||||
|
||||
e {
|
||||
rgba-property: rgb(255,0,0);
|
||||
}
|
||||
|
||||
f {
|
||||
rgba-property: rgb(255,0,0);
|
||||
}
|
||||
|
||||
g {
|
||||
rgba-property: rgb(255,0,0);
|
||||
}
|
||||
|
||||
h {
|
||||
rgba-property: rgb(255,0,0);
|
||||
}
|
||||
|
||||
i {
|
||||
rgba-property: rgb(255,0,0);
|
||||
}
|
||||
|
||||
j {
|
||||
rgba-property: rgb(255,0,0);
|
||||
}
|
||||
|
||||
k {
|
||||
rgba-property: rgb(255,0,0);
|
||||
}
|
||||
|
||||
l {
|
||||
rgba-property: rgb(255,0,0);
|
||||
}
|
||||
|
||||
m {
|
||||
rgba-property: rgb(255,0,0);
|
||||
}
|
||||
|
||||
n {
|
||||
rgba-property: rgb(255,0,0);
|
||||
}
|
||||
|
||||
o {
|
||||
rgba-property: rgb(255,0,0);
|
||||
}
|
||||
Reference in New Issue
Block a user