W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2018

Re: [csswg-drafts] [selectors] decide on :blank (#1967)

From: Pierre Spring via GitHub <sysbot+gh@w3.org>
Date: Thu, 22 Nov 2018 12:26:10 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-441015114-1542889569-sysbot+gh@w3.org>
@ExE-Boss The way the `:blank` and `:empty` selectors are defined, does not allow for **whitespace only** content to still be selected.

My understanding is that we are trying to find or redefine a selector, that can be used in real world scenarios. Given that whitespace and newlines are not usually considered when outputting HTML, we are in need of a selector that could identify the following example:

  <div class="drop-zone">

.drop-zone:blank {
  content: 'Drop File Here To Upload';

GitHub Notification of comment by caillou
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1967#issuecomment-441015114 using your GitHub account
Received on Thursday, 22 November 2018 12:26:11 UTC

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