[css-pseudo-4] Should Element.pseudo("unknown") be an error or return null? · Issue #3603 · w3c/csswg-drafts (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

@fantasai

Description

@fantasai

We resolved to have an Element.pseudo(type) interface that returns a CSSPseudoElement. What happens if someone passes a type that isn't known to the implementation? Do we treat it as non-existent or do we throw an error?

Metadata

Metadata

Labels

Development

No branches or pull requests

Issue actions