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

Add test case for & selector #27

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

bartveneman
Copy link
Contributor

@bartveneman bartveneman commented May 13, 2024

Based on w3c/csswg-drafts#10287 we need to have an explicit test to see if the specificity for a single & is correct. This commit adds that test.

Closes #26

Based on w3c/csswg-drafts#10287 we need
to have an explaicit test to see if the specificity for a single
`&` is correct. This commit adds that test.

Closes bramus#26
@bramus bramus merged commit 63fa789 into bramus:main Jun 7, 2024
3 checks passed
@bramus
Copy link
Owner

bramus commented Jun 11, 2024

w3c/csswg-drafts#10196 (comment) has the resolution for this

RESOLVED: explicitly state in specs that when an ampersand doesn't actually have a parent rule to draw from then its specificity is zero

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.

Add test case for &
2 participants