Skip to content
New issue

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

Normalize arbitrary modifiers #11057

Merged
merged 2 commits into from
Apr 21, 2023
Merged

Normalize arbitrary modifiers #11057

merged 2 commits into from
Apr 21, 2023

Conversation

RobinMalfait
Copy link
Contributor

This PR fixes an issue where arbitrary modifiers are not treated the same as arbitrary values.

Currently it is not possible to use underscores (_) in arbitrary modifiers because they stay there as-is instead of getting replaced by spaces.

This PR makes sure that the arbitrary modifiers are normalized, it will use the same rules as arbitrary values. This means that you should be able to use _ instead of a space. If you do want to keep the _ then you have to escape it using \_.

Fixes: #11045

This applies the same rules as arbitrary values. The `_` can be used in
place of a space. If you _do_ want an underscore, you can escape it with
`\_` (`\\_` in JavaScript).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Underscores do not respect in the new line-height modifier
1 participant