Repository navigation
Conversation
With properties-order: 'alphabetical', gap, place-content, place-items, place-self and contain-intrinsic-size were sorted after some of their longhands (column-gap, align-content, ...), because they were missing from the shorthand list. The shorthand then overrides the longhand. Also add the other shorthands from Stylelint's list: font-variant, font-synthesis, scroll-margin, scroll-padding (and their block/inline forms), and text-decoration-thickness for text-decoration. Refs hudochenkov/stylelint-order#224
Owner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With
properties-order: 'alphabetical',gap,place-content,place-items,place-selfandcontain-intrinsic-sizewere not inshorthandData.js. They sort after some of their longhands, so this:stayed as is, and correct input
gap: 1px; column-gap: 2px;was reordered to putcolumn-gapfirst. Either way the shorthand ends up overriding the longhand. This is also what stylelint-order'sproperties-alphabetical-order --fixuses, reported in hudochenkov/stylelint-order#224.I added them, plus the other real shorthands from Stylelint's list that were missing:
font-variant,font-synthesis,scroll-margin/scroll-padding(and their-block/-inlineforms), andtext-decoration-thicknessundertext-decoration. The data is the same as in hudochenkov/stylelint-order#225, so the two copies stay in sync.Tests: a new
properties-alphabetical-shorthand-modernfixture andisShorthandcases. 11 fail on master, all 117 pass with the change.pnpm run lintandpnpm run typesare clean. I also added a line to the Unreleased section of the changelog.