css: Add initial support for calc()
So far, calc() only supports literals, ie it's completely useless.
This commit is contained in:
41
testsuite/css/parser/calc-simple.ref.css
Normal file
41
testsuite/css/parser/calc-simple.ref.css
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user