Re: [css3-values] The types "id" and "idref" for attr()

* Werner Donné wrote:
>Section 8.3 defines the attr() function, where the name of the attribute
>can be followed by a type. Since CSS can also be applied to XML in
>general, the types "id" and "idref" would be natural additions to the
>list of type keywords.

The purpose of the type parameter is to turn the string value of an
attribute into a value in the CSS type system, so example='7' with
a style sheet like

  example { example: attr(example ...) }

might be interpreted as any of the following

  example { example: 7      }
  example { example: \37    }
  example { example: "7"    }
  example { example: 7em    }
  example { example: url(7) }
  ...

CSS currently does not have special syntax to signify an "id" or an
"idref", so it would not be meaningful to have a string value inter-
preted that way.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 

Received on Monday, 21 May 2012 15:24:09 UTC