mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 21:51:08 +00:00
Add a parser tests for transition properties
This adds tests for transition-property, transition-delay and transition-timing-function.
This commit is contained in:
parent
2b6ab1b8bd
commit
8f44383253
@ -356,6 +356,10 @@ test_data = \
|
||||
linear-gradient.ref.css \
|
||||
margin.css \
|
||||
margin.ref.css \
|
||||
min-height.css \
|
||||
min-height.ref.css \
|
||||
min-width.css \
|
||||
min-width.ref.css \
|
||||
no-semicolon.css \
|
||||
no-semicolon.ref.css \
|
||||
not.css \
|
||||
@ -410,6 +414,14 @@ test_data = \
|
||||
text-shadow-invalid-but-worked-in-3.12.ref.css \
|
||||
transition.css \
|
||||
transition.ref.css \
|
||||
transition-delay.css \
|
||||
transition-delay.ref.css \
|
||||
transition-duration.css \
|
||||
transition-duration.ref.css \
|
||||
transition-property.css \
|
||||
transition-property.ref.css \
|
||||
transition-timing-function.css \
|
||||
transition-timing-function.ref.css \
|
||||
value-inherit.css \
|
||||
value-inherit.errors \
|
||||
value-inherit-shorthand.css \
|
||||
|
27
testsuite/css/parser/transition-delay.css
Normal file
27
testsuite/css/parser/transition-delay.css
Normal file
@ -0,0 +1,27 @@
|
||||
a {
|
||||
transition-delay: initial;
|
||||
}
|
||||
|
||||
b {
|
||||
transition-delay: inherit;
|
||||
}
|
||||
|
||||
c {
|
||||
transition-delay: unset;
|
||||
}
|
||||
|
||||
d {
|
||||
transition-delay: 0s;
|
||||
}
|
||||
|
||||
e {
|
||||
transition-delay: 5s;
|
||||
}
|
||||
|
||||
f {
|
||||
transition-delay: 5ms;
|
||||
}
|
||||
|
||||
g {
|
||||
transition-delay: 5ms, 5s;
|
||||
}
|
27
testsuite/css/parser/transition-delay.ref.css
Normal file
27
testsuite/css/parser/transition-delay.ref.css
Normal file
@ -0,0 +1,27 @@
|
||||
a {
|
||||
transition-delay: initial;
|
||||
}
|
||||
|
||||
b {
|
||||
transition-delay: inherit;
|
||||
}
|
||||
|
||||
c {
|
||||
transition-delay: unset;
|
||||
}
|
||||
|
||||
d {
|
||||
transition-delay: 0;
|
||||
}
|
||||
|
||||
e {
|
||||
transition-delay: 5s;
|
||||
}
|
||||
|
||||
f {
|
||||
transition-delay: 5ms;
|
||||
}
|
||||
|
||||
g {
|
||||
transition-delay: 5ms, 5s;
|
||||
}
|
23
testsuite/css/parser/transition-property.css
Normal file
23
testsuite/css/parser/transition-property.css
Normal file
@ -0,0 +1,23 @@
|
||||
a {
|
||||
transition-property: initial;
|
||||
}
|
||||
|
||||
b {
|
||||
transition-property: inherit;
|
||||
}
|
||||
|
||||
c {
|
||||
transition-property: unset;
|
||||
}
|
||||
|
||||
d {
|
||||
transition-property: all;
|
||||
}
|
||||
|
||||
e {
|
||||
transition-property: color;
|
||||
}
|
||||
|
||||
f {
|
||||
transition-property: color, background-color;
|
||||
}
|
23
testsuite/css/parser/transition-property.ref.css
Normal file
23
testsuite/css/parser/transition-property.ref.css
Normal file
@ -0,0 +1,23 @@
|
||||
a {
|
||||
transition-property: initial;
|
||||
}
|
||||
|
||||
b {
|
||||
transition-property: inherit;
|
||||
}
|
||||
|
||||
c {
|
||||
transition-property: unset;
|
||||
}
|
||||
|
||||
d {
|
||||
transition-property: all;
|
||||
}
|
||||
|
||||
e {
|
||||
transition-property: color;
|
||||
}
|
||||
|
||||
f {
|
||||
transition-property: color, background-color;
|
||||
}
|
35
testsuite/css/parser/transition-timing-function.css
Normal file
35
testsuite/css/parser/transition-timing-function.css
Normal file
@ -0,0 +1,35 @@
|
||||
a {
|
||||
transition-timing-function: initial;
|
||||
}
|
||||
|
||||
b {
|
||||
transition-timing-function: inherit;
|
||||
}
|
||||
|
||||
c {
|
||||
transition-timing-function: unset;
|
||||
}
|
||||
|
||||
d {
|
||||
transition-timing-function: ease;
|
||||
}
|
||||
|
||||
e {
|
||||
transition-timing-function: ease, linear, ease-in, ease-out, ease-in-out, step-start, step-end;
|
||||
}
|
||||
|
||||
f {
|
||||
transition-timing-function: cubic-bezier(0,0.25,1,2.7);
|
||||
}
|
||||
|
||||
g {
|
||||
transition-timing-function: steps(3);
|
||||
}
|
||||
|
||||
h {
|
||||
transition-timing-function: steps(5,start);
|
||||
}
|
||||
|
||||
i {
|
||||
transition-timing-function: steps(7,end);
|
||||
}
|
35
testsuite/css/parser/transition-timing-function.ref.css
Normal file
35
testsuite/css/parser/transition-timing-function.ref.css
Normal file
@ -0,0 +1,35 @@
|
||||
a {
|
||||
transition-timing-function: initial;
|
||||
}
|
||||
|
||||
b {
|
||||
transition-timing-function: inherit;
|
||||
}
|
||||
|
||||
c {
|
||||
transition-timing-function: unset;
|
||||
}
|
||||
|
||||
d {
|
||||
transition-timing-function: ease;
|
||||
}
|
||||
|
||||
e {
|
||||
transition-timing-function: ease, linear, ease-in, ease-out, ease-in-out, step-start, step-end;
|
||||
}
|
||||
|
||||
f {
|
||||
transition-timing-function: cubic-bezier(0,0.25,1,2.7);
|
||||
}
|
||||
|
||||
g {
|
||||
transition-timing-function: steps(3);
|
||||
}
|
||||
|
||||
h {
|
||||
transition-timing-function: steps(5,start);
|
||||
}
|
||||
|
||||
i {
|
||||
transition-timing-function: steps(7);
|
||||
}
|
Loading…
Reference in New Issue
Block a user