You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PostCSS now has support for some of the logical viewport units (@csstools/postcss-logical-viewport-units); it'd be useful to be able to enforce these too (though they come from a difference spec).
I'm aware of the unit-disallowed-list rule (which could be used to disable vh, vw etc.), but that doesn't provide a fixer.
postcss-preset-env added a plugin for logical viewport units, which we should use to avoid mixing logical properties and physical units.
Stylelint doesn't yet have a way to enforce these through linting, only a disallow list. I've chosen not to go down this route (with a fixer), as Utopia (https://utopia.fyi/) produces physical units: it would have to be a manual step to replace them each time.
Refs #616, Jordan-Hall/stylelint-use-logical-spec#38, https://stylelint.io/user-guide/rules/unit-disallowed-list
PostCSS now has support for some of the logical viewport units (@csstools/postcss-logical-viewport-units); it'd be useful to be able to enforce these too (though they come from a difference spec).
I'm aware of the
unit-disallowed-list
rule (which could be used to disablevh
,vw
etc.), but that doesn't provide a fixer.Refs stylelint/stylelint#6428
The text was updated successfully, but these errors were encountered: