Files
deb-python-lesscpy/test/less/functions.less
Sascha Peilicke a556030931 Move tests to root dir
In essence, tests are not an importable submodule anymore but an
independent piece of code that won't be installed in a user's
site-packages directory.
2014-02-02 13:28:58 +01:00

56 lines
1.0 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
CSS Function tests inspired by
http://www.suburban-glory.com/blog?page=130
*/
/* CSS 2.1 Functions */
#wrapper {
background : url(images/photo-one.jpg);
}
body {
counter-reset: paras 0;
}
p:before {
counter-increment: paras 1;
content: "New Paragraph: " counter(paras, decimal) ": ";
}
@media print {
a:after {
content: " (" attr(href) ") "
}
}
@media print {
abbr:after {
content: " (" attr(title) ") ";
}
}
a:hover:after {
content: " Page: (" attr(href) ") ";
}
/* CSS 3 Functions */
/* NOTE(saschpe): Not yet, even lessc chokes on it:
SyntaxError: expected ')' got '' in /root/Projects/python/Lesscpy/lesscpy/test/less/functions.less on line 40, column 61:
39 #example {
40 width: calc(100% * (attr(value) - attr(min)) / (attr(max) attr(min)))
41 }
#example {
width: calc(100% * (attr(value) - attr(min)) / (attr(max) attr(min)))
}
#example {
position: fixed;
height: 25px; width: 300px;
top: calc(min(500px, 1vh-25px));
left: calc(min(30px, 1wh-300px));
}
*/