-
-
Notifications
You must be signed in to change notification settings - Fork 966
Closed
Description
UnoCSS version
Describe the bug
So here is the code from preset-mini:
// perspectives
[/^(?:transform-)?perspect(?:ive)?-(.+)$/, ([, s]) => {
const v = h.bracket.cssvar.px.numberWithUnit(s)
if (v != null) {
return {
'-webkit-perspective': v,
'perspective': v,
}
}
}],Which means it will treat both perspective- and transform-perspective- to the property perspective instead of the transform function perspective.
For forward compatibility, maybe we can name the real transform function perspective as something like t-perspective for example, IMO. Future discussion are really welcomed.
The same problem maybe also exists in preset-wind4 but I haven't tested.
Reproduction
System Info
No response
Validations
- Read the Contributing Guidelines.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels