Commit 4ec004a0 by Aaron Leung

Piling up the builtin function tests in here. Will move it to the spec when…

Piling up the builtin function tests in here. Will move it to the spec when everything is implemented.
parent 022b477f
$x: rgb(255, 0, 0);
div {
color: rgb(255, $blue: 0, $green: 255);
background: rgb(123, 45, 6);
flah: rgba(0, 0, 0, 1) + #111;
grah: rgba($alpha: .5, #fff);
blah: rgba(1,2,3,.6);
floo: $x;
bloo: rgba($x, 0.5);
floo2: $x;
$x: rgb(123, 45, 6);
hoo: red($x);
moo: green($x);
poo: blue($x);
$y: rgba(123, 45, 6, .7);
goo: rgba($y, .8);
hooboo: unquote("hello");
hooboo: unquote(goodbye);
boohoo: quote(floogoo);
boohoo: quote('I said "hello" to you.');
fooboo: quote('whatever and so forth');
a: alpha($y);
b: opacity($y);
c: opacity(#abc);
a: opacify(rgba(0,0,0,0.5), 0.1);
b: fade_in(rgba(0,0,17,0.8), 0.2);
a: transparentize(rgba(0,0,0,0.5), 0.1);
b: fade_out(rgba(0,0,17,0.8), 0.2);
a: percentage(100px / 50px);
a: abs(100px / 50px);
b: round(10.4px);
c: round(10.6px);
d: floor(10.4px);
e: floor(10.6px);
f: ceil(10.4px);
g: ceil(10.6px);
h: abs(-23em);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment