Add css-color-4.vim

See also: https://www.w3.org/TR/2016/WD-css-color-4-20160705/
This commit is contained in:
Kyo Nagashima
2016-07-06 09:23:39 +09:00
parent eacc98e57a
commit 519acb02ec
5 changed files with 39 additions and 3 deletions

View File

@@ -90,7 +90,22 @@
.color {
opacity: rgba(0, 0, 0, 1);
display: hsla(0, 0, 0, 1);
display: currentColor;
display: currentcolor;
}
@color-profile swopc {
src: url('http://example.org/swop-coated.icc');
}
.color-4 {
color-adjust: rebeccapurple;
display: hwb(120deg, 44%, 50%);
display: lab(1 2 3);
display: lch(4 5 6);
display: gray(50%);
display: color(swopc, 0 206 190 77);
display: device-cmyk(0, 81%, 81%, 30%);
display: color-mod(#112233 tint(50%));
}
@supports (display: auto) or

View File

@@ -108,7 +108,23 @@
.color {
opacity: rgba(0, 0, 0, 1);
display: hsla(0, 0, 0, 1);
display: currentColor;
display: currentcolor;
}
</style>
<style>
@color-profile swopc {
src: url('http://example.org/swop-coated.icc');
}
.color-4 {
color-adjust: rebeccapurple;
display: hwb(120deg, 44%, 50%);
display: lab(1 2 3);
display: lch(4 5 6);
display: gray(50%);
display: color(swopc, 0 206 190 77);
display: device-cmyk(0, 81%, 81%, 30%);
display: color-mod(#112233 tint(50%));
}
</style>
<style>