Dmitry Semigradsky
Dmitry Semigradsky
I think expected output for ```css :root { --my-background: #fff; } .three { background-color: var(--my-var, var(--my-background, pink)); } ``` should be: ```css :root { --my-background: #fff; } .three { background-color:...
But ```css .three { background-color: #fff; } ``` will break current browsers. What if we have defined `--my-var`? Or we want define it via javascript.
@jwdallas try https://github.com/jonathantneal/postcss-color-mod-function
The same issue: #77
This bug happens because 'function' regexp not matching function which has many brackets inside: https://github.com/postcss/postcss-calc/blob/6260789750bbf73006190ef00ab43abfb278b4dc/src/parser.jison#L13 As I understand it is not possible to match nested brackets by regex so it...
`margin-right: calc(var(--b, calc(var(--c) * 1)))` and `--main-gap-mobile: calc((100vw - var(--main-width-mobile)) / 2)` are valid. You can check it just by add them via chrome devtools.
Yeah, it is a bug. `color(black b(10%))` should represent the same color as `hwb(0, 90%, 10%)` (#e6e6e6) See https://drafts.csswg.org/css-color/#hsl-hwb-adjusters for more information.
@SlimMarten could you remove all plugins except `postcss-advanced-variable` and `postcss-color-function` and provide css code when it error reproduced?
> Никакого занудства, только душевные презентации на любые темы: от рейтинга гифок-поздравляшек из вотсапп до обзора на выдру. Это точно про фронтэнд?
@DimonNikolaev Можете тут взять, если будет удобнее: https://github.com/Semigradsky/events/tree/master/events/WSD Брал информацию с сайта wsd.events