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

Fix declaration-block-no-redundant-longhand-properties false negatives for overflow, overscroll-behavior, scroll-margin, scroll-padding, and new Box Alignment shorthands #7213

Merged
merged 6 commits into from Oct 7, 2023

Conversation

mattxwang
Copy link
Member

@mattxwang mattxwang commented Oct 6, 2023

Which issue, if any, is this issue related to?

Ref: #7200 (comment) & other missing shorthands.

Is there anything in the PR that needs further explanation?

Wasn't sure about background-position or border-image-width in the linked issue, so I left a comment.

Any thoughts on how to name this PR?

Current 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 supported
  • contain-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 PR
  • font-variant: 96% on caniuse same as font-synthesis re: shorthand behavior
  • scroll-timeline: 62% on caniuse, definitely too low!

@changeset-bot
Copy link

changeset-bot bot commented Oct 6, 2023

🦋 Changeset detected

Latest commit: 8118835

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
stylelint Patch

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

@mattxwang mattxwang marked this pull request as ready for review October 6, 2023 23:45
@mattxwang
Copy link
Member Author

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:

Fix declaration-block-no-redundant-longhand-properties false negatives for overflow, overscroll-behavior, scroll-margin, scroll-padding, and new Box Alignment shorthands

It is likely too long. Any suggestions?

@ybiquitous
Copy link
Member

It is likely too long. Any suggestions?

Surely, it's long bug clear to me. I think it's not a problem. 👍🏼

Copy link
Member

@ybiquitous ybiquitous left a 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. 😄

@Mouvedia
Copy link
Contributor

Mouvedia commented Oct 7, 2023

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.

LGTM 👍🏼

👍

@mattxwang mattxwang changed the title Fix declaration-block-no-redundant-longhand-properties false negatives Fix declaration-block-no-redundant-longhand-properties false negatives for overflow, overscroll-behavior, scroll-margin, scroll-padding, and new Box Alignment shorthands Oct 7, 2023
@mattxwang mattxwang merged commit 3374bb4 into main Oct 7, 2023
18 checks passed
@mattxwang mattxwang deleted the more-longhand-properties branch October 7, 2023 23:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants