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

> I also strongly prefer constant(). (I discussed in the meeting how this ties into the desire for cheaper "global variables", so authors could use constant(--name) while UA-defined ones are just constant(name))

I have got a problem here, and my problem varies ;) More precisely, the values that we are discussing here are not going to be constants. The scrollbar width can be updated on Windows and it is very likely we will end up toggling them off for instance when you detach your keyboard and got to tablet mode.

Similarly, when you enable an high-contrast theme, "constant" colors are going to change.

Even the proposed notch-safe space will depend on the screen orientation, I assume.

All in all, I have not seen any argument to convince me we should invest in adding a new function instead of a namespace for existing value references. 


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

Received on Thursday, 14 September 2017 04:23:49 UTC