Is there a way to get all valid keywords for CSS property?

Posted by NV on Stack Overflow See other posts from Stack Overflow or by NV
Published on 2010-04-15T22:48:52Z Indexed on 2010/04/15 22:53 UTC
Read the original article Hit count: 209

Filed under:
|
|

Round two. First was "How do I get all supported CSS properties in WebKit?".

I'm looking for magic CSSkeywords function:

CSSkeywords('float') --> ['left', 'right', 'none']
CSSkeywords('width') --> ['auto']
CSSkeywords('background') --> [
  ["repeat", "repeat-x", "repeat-y", "no-repeat"], 
  ["scroll", "fixed"], 
  ["top", "center", "bottom", "left"],
  /*regexp for color*/,
  /*regexp for url*/,
  "none"
]

© Stack Overflow or respective owner

Related posts about dom

Related posts about css