-
-
Notifications
You must be signed in to change notification settings - Fork 956
Closed
Description
Clear and concise description of the problem
UnoCSS supports intrinsic-size-{size} for contain-intrinsic-size: {size}.
This is a limited access to that CSS feature, as "-size" defines both the width and height.
It's useful to specify the intrinsic size in a single direction only; having width and height variants feel natural and consistent with other size properties.
Suggested solution
Add support for
intrinsic-w-{size} --> contain-intrinsic-width: {size}
intrinsic-h-{size} --> contain-intrinsic-height: {size}
Maybe also -inline- and -block- for exhaustiveness? margin- has them for example.
Alternative
Users define their own rules
Additional context
Validations
- Read the Contributing Guidelines.
- Read the
README.mdof using the package. - Already used the Interactive Docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Metadata
Metadata
Assignees
Labels
No labels