roole
roole copied to clipboard
A language that compiles to CSS
Test case: ``` css body { background: url(//example.com/image.png) } ``` Expected to be treated as valid background url.
Inspired by https://github.com/ai/autoprefixer A few things prevent me to use it directly for Roole: - The AST generated by `css-parse` is incompatible with the one generated by Roole. So we...
From API documentation: > Use an empty array or **a falsy value** to disable prefixing completely. But it seem that it doesn't work. ``` javascript roole.compile('.wat { box-shadow: 0 1px...
Roole shoud supports @supports CSS rule: ``` a.cls { display: block; @supports (display: flex) { display: flex; } } ``` should compile to: ``` a.cls { display: block; } @supports...
When importing a file, chrome issues 2 errors about index.roo and package.json being not found. This "polutes" the console and makes it harder to detect real errors from expected ones....
``` @if not $even($num) and not $prime($num) { } ```
`@break;` `@continue;`
``` $arg = a b; $func = @function $p1, $p2 { @return $p1, $p2; }; $func(...$arg); // a, b ```
``` $func = @function $p1, $p2 = 'b', $p3 = 'c' { @return $p1, $p2, $p3 } $func(1, $p3 = 3); // 1, 'b', 3 ```
`[0 1] + 2` -> `[0 1 2]` `-1 + [0, 1]` -> `[-1, 0, 1]` `[0 1] + [2, 3]` -> `[0 1 2, 3]`