Re: using CSS syntax for presentation attributes

* Dirk Schulze wrote:
>I would rather limit the differences instead of increasing them. Like
>discussed before, browsers already use the CSS parser for presentation
>attributes but with special casing on presentation attributes. Instead
>we should support Tab's idea to support scientific notations and unit
>less values in CSS in general, so that we don't need to special casing
>anymore. How could comments in presentation attribute increase
>readability? Why no comment in or before the element?

I'm not aware that anyone is arguing comments in presentation attributes
would increase readability, but they would have to be allowed in order
to align the syntaxes as CSS allows comments for instance in functional
notations like rgb(/**/0,0,0), which has not been very necessary in the
past, but will probably see increased usage as CSS adds new constructs
that are composed of many characters, like gradients and image sets and
border images and multiple background images or whatever. Authors of SVG
content might prefer comments outside attributes, because making presen-
tation attributes "very long" is a problem on its own, but that does not
affect whether they would be allowed and parsed in presentation attri-
butes.
-- 
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 Wednesday, 23 May 2012 20:01:18 UTC