Skip to search.

Breaking News Visit Yahoo! News for the latest.

×Close this window

jslint_com · This group has moved to Google Plus.

The Yahoo! Groups Product Blog

Check it out!

Group Information

  • Members: 583
  • Category: JavaScript
  • Founded: Mar 7, 2008
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Messages

Advanced
Messages Help
CSS content property   Topic List   < Prev Topic  |  Next Topic >
Summarize Messages | View Threaded Sort by Date v  
#883 From: "pauanyu" <pcxunlimited@...>
Date: Wed Sep 2, 2009 10:08 pm
Subject: CSS content property
pauanyu
Send Email Send Email
 
@charset "UTF-8";
div {
content: counter(foo) "." attr(bar);
}

Three things:

1) content is only supposed to be used on the :before, ::before, :after, and
::after pseudo-elements. Opera supports it on any element, in case that matters
any.

2) content can accept an "attr()" property.

2) content can accept multiple values, but JSLint expects content to only have
one. Here are the error messages:


Problem at line 3 character 27: Expected ';' and instead saw '.'.

Problem at line 3 character 31: Unrecognized style attribute 'attr'.

Problem at line 3 character 35: Expected ':' and instead saw '('.




 
Add to My Yahoo!      XML What's This?

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help