This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Current draft [1] defines :unknown pseudo element. However, it doesn't match unresolved type-extended elements like <div is=x-foo>, which also need some style. One possible idea is to change :unknown to :unresolved so that we can support both HTMLUnknownElement and type-extended node. From custom elements perspective, it even isn't necessary to decorate all HTMLUnknwonElement. What we need is to decorate yet-to-be-custom unknown element that has valid custom element name. :unresolved can only match such elements. [1] https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/custom/index.html#unknown-element-pseudoclass
Now that the unresolved element concept exists, this is very easy (and better): https://dvcs.w3.org/hg/webcomponents/rev/0409b21c2588