You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ::part() pseudo-element can also take additional pseudo-elements after it, such as x-button::part(label)::before, but never match additional ::part()s.
<button-hover><templateshadowrootmode="open"><buttonpart="button_hover">:hover</button></template></button-hover><style>
button-hover::part(button_hover):hover {
outline: 5px dashed green;
}
button-hover::part(button_hover):disabled,
button-hover::part(button_hover):hover {
background: lightgreen; /* not applied in Chromium, works fine in FireFox */
}
</style>
In Chrome, the pseudo-element selector ::part() and additional :disabled pseudo-class does not work properly. This works in Firefox perfectly.
Here is a corresponding code snippet: https://stackoverflow.com/questions/66867011/css-shadow-parts-selector-part-does-not-work-in-combination-with-disabled-p
Only in Firefox the disabled button will have a yellow background.
Is this a Chrome-bug or intended behavior?
The text was updated successfully, but these errors were encountered: