-
Notifications
You must be signed in to change notification settings - Fork 656
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
[css‑shadow‑parts] What is the specificity of ::part(…)
with multiple <ident>
s?
#3995
Comments
Sounds reasonable, but do we want this to interact class-like with real classes? That is, do the following have the same specificity, so the result is solely determined by order?
|
I think I'd rather keep it working as a regular pseudo-element selector than complicating the specificity rules, but that's just my opinion :) |
Well, |
I don't think that matters? Both can end up matching the same element, so they need to be sorted by specificity and thus tab's question still stands. |
https://drafts.csswg.org/css-shadow-parts/#part
Since the part name is similar to a class name, I would expect that
::part(active tab)
would have a higher specificity than::part(tab)
or::part(active)
.See also: #1915, #3502, WICG/webcomponents#847
The text was updated successfully, but these errors were encountered: