Re: [csswg-drafts] [css-variables] User Agent properties and variables

> The second example, using $() reads to me like a layer on top of CSS - either a preprocessor variable or something that's going to be interpolated before that text becomes CSS. This is closer to what's really going on, but my first thought is not that it's coming from the browser. 

If I understood @tabatkins properly, while some of these values will come from the browser, some can also come from JavaScript using the proposed $(--my-global) syntax. If I misunderstood that, 

> If I saw `$(...)` in the wild my first thought would be that somebody accidentally published some kind of Sass/Less/Stylus-like preprocessor dialect without compiling it to CSS first.

Well, it's because you don't know this is allowed in CSS. That's something you would learn as part of learning CSS in the future even before you start learning about SASS.

-- 
GitHub Notification of comment by FremyCompany
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1693#issuecomment-330306878 using your GitHub account

Received on Monday, 18 September 2017 18:02:19 UTC