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
Add the following code to remind users that the undefined elements are used:
:not(:defined) {
display: block;
font-size:0;
}
:not(:defined) * {
display: none;
}
:not(:defined)::before {
font-size:1rem;
display: block;
content:'The element is not defined';
padding:1em;
text-align: center;
background: gray;
}
But now we have Declarative Shadow DOM, we can no longer determine which elements may have layout problems(demo), to find these elements, it is suggested to add a pseudo class::attached:
:not(:defined,:attached) {
display: block;
font-size:0;
}
:not(:defined,:attached) * {
display: none;
}
:not(:defined,:attached)::before {
font-size:1rem;
display: block;
content:'The element is not defined';
padding:1em;
text-align: center;
background: gray;
}
The text was updated successfully, but these errors were encountered:
fantasai
changed the title
[css-selectors] Consider adding a selector to match the element that has shadow DOM
[selectors] Consider adding a selector to match the element that has shadow DOM
Jan 9, 2024
Add the following code to remind users that the undefined elements are used:
But now we have Declarative Shadow DOM, we can no longer determine which elements may have layout problems(demo), to find these elements, it is suggested to add a pseudo class:
:attached
:The text was updated successfully, but these errors were encountered: