Files
gtk/testsuite/css/parser/color.css
Benjamin Otte 4ac3f916d0 css: Parse hex colors with alpha value
The CSS color spec version 4 introduces this, support has hit Safari,
Chrome and Firefox, so this looks like a feature that's here to stay.

https://drafts.csswg.org/css-color/#hex-notation
2018-03-02 02:00:24 +01:00

74 lines
532 B
CSS

@define-color mygreen rgb(0,1,0);
a {
color: initial;
}
b {
color: inherit;
}
c {
color: unset;
}
d {
color: currentColor;
}
e {
color: transparent;
}
f {
color: red;
}
g {
color: rgba(0,1,0,1);
}
h {
color: rgb(1,0,1);
}
i {
color: #abc;
}
j {
color: #0123;
}
k {
color: #012345;
}
l {
color: #FFEEDDCC;
}
m {
color: lighter(red);
}
n {
color: darker(red);
}
o {
color: shade(green,0.5);
}
p {
color: alpha(green,0.5);
}
q {
color: mix(red,blue,0.25);
}
r {
color: @mygreen;
}