We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
-moz-image-rect()
image()
https://drafts.csswg.org/css-images-4/#image-fragments
The text was updated successfully, but these errors were encountered:
maybe a fragment() function? Something similar to css clip-path like rect() or svg's viewbox() could be generalized for image fragment use?
fragment()
rect()
viewbox()
Sorry, something went wrong.
I guess #542 would allow this
Yup, this is basically a dup of #542
No branches or pull requests
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 proposedimage()
:https://codepen.io/jsnkuhn/pen/JjEpbwy?editors=1100
https://drafts.csswg.org/css-images-4/#image-fragments
The text was updated successfully, but these errors were encountered: