Problem/Motivation
At the moment, if you want to add something like font-size: 12pt; in a print.css you will fail our stylelint rules since pt is not an allowed value in our set up, even though a 12pt font size is perfectly acceptable for printing.
We should allow all the available, non-deprecated CSS units so stylelint can focus on coding standards rather than what from the spec we can use.
Proposed resolution
Two options (and I'll attach an MR for each):
- Add all units to the
unit-allowed-list array in .stylelint.json
- Remove the unit-allowed-list parameter so we don't have to update this each time a new unit comes out
Remaining tasks
Add all units to the unit-allowed-list array in .stylelint.json
User interface changes
None
Introduced terminology
None
API changes
None
Data model changes
None
Comments
Comment #3
markconroy commentedComment #5
markconroy commentedComment #6
mherchelI'm all for just removing the
unit-allowed-listin https://git.drupalcode.org/project/drupal/-/merge_requests/16081/diffs