This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 27884 - Useful content pseudo-element selectors are not valid
Summary: Useful content pseudo-element selectors are not valid
Status: NEW
Alias: None
Product: CSS
Classification: Unclassified
Component: CSS Scoping (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Tab Atkins Jr.
QA Contact: public-css-bugzilla
URL: http://drafts.csswg.org/css-scoping/#...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-23 01:43 UTC by William Chen
Modified: 2015-01-23 01:43 UTC (History)
0 users

See Also:


Attachments

Description William Chen 2015-01-23 01:43:52 UTC
According to the grammar (http://www.w3.org/TR/selectors/#grammar):

  /* Note that pseudo-elements are restricted to one per selector and */
  /* occur only in the last simple_selector_sequence. */

The ::content pseudo-element isn't meaningful when it's the last simple selector and it should be allowed to show up more than once per selector.

http://drafts.csswg.org/css-scoping/#content-combinator