[csswg-drafts] [css-images-4] image() fragment cannot be created from var() (#6226)

jsnkuhn has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-images-4] image() fragment cannot be created from var() ==
The currently proposed image fragment syntax cannot be created from a css variable since css variables can't be used to create larger tokens.

Firefox's old -moz-image-rect syntax allows construction from css variables:
https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-image-rect 

Codepen comparing `-moz-image-rect()` with the current proposed `image()`:
https://codepen.io/jsnkuhn/pen/JjEpbwy?editors=1100 

https://drafts.csswg.org/css-images-4/#image-fragments

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6226 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 20 April 2021 02:11:58 UTC