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
Fix declaration-block-no-redundant-longhand-properties
false negatives for overflow
, overscroll-behavior
, scroll-margin
, scroll-padding
, and new Box Alignment shorthands
#7213
Conversation
🦋 Changeset detectedLatest commit: 8118835 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Going to unmark this as draft, but before we merge this - I think a clearer PR title is necessary (which I'll then put into the changeset for this, which will be a patch). While this would be accurate:
It is likely too long. Any suggestions? |
Surely, it's long bug clear to me. I think it's not a problem. 👍🏼 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. LGTM 👍🏼
Please don't forget to update the changelog. 😄
Please add all the properties either in the changelog partial or the commit message during the squash.
👍 |
lib/rules/declaration-block-no-redundant-longhand-properties/__tests__/index.mjs
Outdated
Show resolved
Hide resolved
declaration-block-no-redundant-longhand-properties
false negativesdeclaration-block-no-redundant-longhand-properties
false negatives for overflow
, overscroll-behavior
, scroll-margin
, scroll-padding
, and new Box Alignment shorthands
Ref: #7200 (comment) & other missing shorthands.
Wasn't sure about
background-position
orborder-image-width
in the linked issue, so I left a comment.Any thoughts on how to name this PR?
Current properties:
gap
: 94% on caniuseoverflow
overscroll-behavior
place-content
: 95% on caniuseplace-items
: 95% on caniuseplace-self
: 95% on caniusescroll-margin
(we already supported theblock
/inline
properties)scroll-padding
(we already supported theblock
/inline
properties)Properties in the shorthand list that I'm choosing not to do (but could bundle in?):
container
: 88% on caniuse. I think this is supported by all major browsers, but is slightly smaller than the other shorthands we've supportedcontain-intrinsic-size
: 74% on caniuse, which seems low?font-synthesis
: 92% on caniuse, but the way this shorthand behaves is a bit different than the standard shorthand (it's almost like a flag?) so I'll do this in a different PRfont-variant
: 96% on caniuse same asfont-synthesis
re: shorthand behaviorscroll-timeline
: 62% on caniuse, definitely too low!