css: Add initial support for calc()

So far, calc() only supports literals, ie it's completely useless.
This commit is contained in:
Benjamin Otte
2016-02-12 06:56:14 +01:00
parent a52ecd2be6
commit cd6dc954f2
7 changed files with 264 additions and 1 deletions

View File

@ -0,0 +1,41 @@
a {
margin-bottom: -3px;
margin-left: 0;
margin-right: 0;
margin-top: 1px;
}
b {
background-position: top;
}
c {
background-image: linear-gradient(45deg, rgb(255,0,0) 0, rgb(0,128,0) 100%);
}
d {
border-bottom-left-radius: 2px 2em;
border-bottom-right-radius: 1px 3em;
border-top-left-radius: 1px 1em;
border-top-right-radius: 2px 2em;
}
e {
border-top-left-radius: 50%;
}
f {
border-image-source: radial-gradient(circle 20px at center 25%, rgb(255,0,0) 0, rgb(0,0,255) 100%);
}
g {
border-left-color: initial;
border-left-style: initial;
border-left-width: 1px;
}
h {
border-right-color: rgb(255,0,0);
border-right-style: initial;
border-right-width: 2px;
}