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
{{ message }}
This repository has been archived by the owner on Oct 26, 2021. It is now read-only.
May be obvious to some, but was not to me. For native custom elements, can use the :defined pseudo-class to style elements that have been defined (and probably more importantly, :not(:defined) to style elements that haven't been).
Current fix I believe is to manually add and remove an "unresolved" attribute, or equivalent.
The text was updated successfully, but these errors were encountered:
for completeness, the unresolved trick won't work for those elements that get upgraded lazily (e.g. after some user action). The unresolved attribute styling is done in webcomponentsjs, and the attribute is removed after at WebComponentsReady event.
Salut! @notwaldorf@valdrinkoshi@arthurevans well done on documenting :defined. We are currently working through some inconsistencies between W3C/CSSOM/WHATWG. :defined and it's pseudo-class definition implementation are also under discussion along with some outstanding CE issues:
May be obvious to some, but was not to me. For native custom elements, can use the
:defined
pseudo-class to style elements that have been defined (and probably more importantly,:not(:defined)
to style elements that haven't been).Current fix I believe is to manually add and remove an "unresolved" attribute, or equivalent.
The text was updated successfully, but these errors were encountered: