Navigation Menu

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

Update specificity calculation for selector pseudos #1781

Merged
merged 3 commits into from Aug 19, 2022
Merged

Update specificity calculation for selector pseudos #1781

merged 3 commits into from Aug 19, 2022

Conversation

nex3
Copy link
Contributor

@nex3 nex3 commented Aug 18, 2022

This is very close to invisible to the user and actually making it
visible would require a complex and hard-to-read test, so I'm electing
to avoid testing it.

Closes sass/sass#2528

This is very close to invisible to the user and actually making it
visible would require a complex and hard-to-read test, so I'm electing
to avoid testing it.

Closes #2528
@nex3 nex3 requested a review from Goodwine August 18, 2022 01:15
pkg/sass_api/CHANGELOG.md Outdated Show resolved Hide resolved
lib/src/ast/selector/pseudo.dart Show resolved Hide resolved
@nex3 nex3 merged commit 7695332 into main Aug 19, 2022
@nex3 nex3 deleted the specificity branch August 19, 2022 01:31
var selector = this.selector;
if (selector == null) return super.specificity;

// https://drafts.csswg.org/selectors/#specificity-rules
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Linking to https://www.w3.org/TR/selectors-4/#specificity-rules seems better than using the draft IMO.

@connorskees connorskees mentioned this pull request May 17, 2023
30 tasks
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.

Update the specificity behavior for selector pseudo-classes to match the new spec
3 participants