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 29076 - :after selector does not accept content attr(attribute)
Summary: :after selector does not accept content attr(attribute)
Status: NEW
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: CSS 2.1 (show other bugs)
Version: CSS Validator
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-23 22:02 UTC by Walt Farrell
Modified: 2015-10-26 13:05 UTC (History)
2 users (show)

See Also:


Attachments

Description Walt Farrell 2015-08-23 22:02:09 UTC
Sometime in about mid-June, 2015, the w3c CSS validator stopped accepting CSS :after selectors that use the "content:" keyword with the "attr(<attribute-name>)" value:
  :after { content: attr(<attribute-name>); }

Though files with that selector used to validate properly, and still work in all browsers, the w3 CSS validator has started giving the error message:
  Value Error : content Parse Error attr(<attribute-name>) 

Example:
This CSS statement
  .pageno:after { content: attr(title); }

gives this error:
  Value Error : content Parse Error attr(title)