Re: [csswg-drafts] [css-variables] Unable to do feature matching at parse time when using var()

> For future levels of CSS Custom Properties, there are proposals for declaring the data type of the property. For example, in your case the data time would be a single image. That would allow the parser to check the --x1 and --x2 values to confirm that they are valid images, and it would also allow it to check the two background-image declarations, to confirm they would make sense if the var() calls were each replaced by an image.

Sadly this part has been removed from the proposal because Blink engineers thought it would be too complex to implement for them. Using support will thus remain the only option, except if the group changes its mind.

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

Received on Saturday, 13 May 2017 06:10:33 UTC