Converting inset
to top
, right
, bottom
, left
breaks with custom properties
#1570
Closed
2 of 3 tasks
Labels
Bug description
If a custom property is used for
inset
that represents the value for multiple offsets, the converted CSS is broken.Actual CSS showing the translated custom property value:
Source CSS
p {
--offset: 0 1rem 2rem 1rem;
inset: var(--offset);
}
Expected CSS
p {
--offset: 0 1rem 2rem 1rem;
inset: var(--offset);
}
Actual CSS
p {
--offset: 0 1rem 2rem 1rem;
top: var(--offset);
right: var(--offset);
bottom: var(--offset);
left: var(--offset);
}
Playgound example
playground example
Does it happen with
npx @csstools/csstools-cli <plugin-name> minimal-example.css
?None
Debug output
No response
Extra config
This is the browserslist we use:
["> 1%", "last 3 versions", "not IE < 12", "not dead"]
What plugin are you experiencing this issue on?
No response
Plugin version
10.1.4
What OS are you experiencing this on?
No response
Node Version
23.7.0
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: