W3C home > Mailing lists > Public > public-css-archive@w3.org > February 2019

Re: [csswg-drafts] [css-pseudo-4] Should Element.pseudo("unknown") be an error or return null? (#3603)

From: Anne van Kesteren via GitHub <sysbot+gh@w3.org>
Date: Tue, 26 Feb 2019 09:26:27 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-467363388-1551173186-sysbot+gh@w3.org>
I'd expect an exception if it doesn't meet the syntactic requirements for a pseudo-element. However, I guess that only really works if pseudo-elements won't gain arguments. Because at that point it's ambiguous whether `before(...)` meets the constraints or not.

It's somewhat confusing though that this issue uses "unknown" and the TAG review issue uses ":unknown". Does "before" work? Does ":before"? Does "::before"? Is there a formal definition of this method somewhere?

-- 
GitHub Notification of comment by annevk
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3603#issuecomment-467363388 using your GitHub account
Received on Tuesday, 26 February 2019 09:26:28 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:44 UTC