W3C home > Mailing lists > Public > public-css-archive@w3.org > March 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: Wed, 27 Mar 2019 08:10:01 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-477027787-1553674200-sysbot+gh@w3.org>
@fantasai so `:before` and `::before` are errors? And a pseudo-element that takes an argument would also be an error if you pass in `pseudo-with-argument(some-valid-argument)`?

The latter seems problematic for the `::part` pseudo-element, where you probably want to return different objects depending on the argument passed to the pseudo-element.

-- 
GitHub Notification of comment by annevk
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3603#issuecomment-477027787 using your GitHub account
Received on Wednesday, 27 March 2019 08:10:02 UTC

This archive was generated by hypermail 2.4.0 : Thursday, 24 March 2022 20:26:58 UTC