W3C home > Mailing lists > Public > www-svg@w3.org > December 2004

Re: CSS WG comments on SVG 1.2

From: Peter Sorotokin <psorotok@adobe.com>
Date: Tue, 07 Dec 2004 14:28:23 -0800
To: Ian Hickson <ian@hixie.ch>
Cc: Dean Jackson <dean@w3.org>, Bert Bos <bert@w3.org>, Antoine Quint <ml@graougraou.com>, www-svg@w3.org
Message-id: <>

At 09:57 PM 12/7/2004 +0000, Ian Hickson wrote:
>On Tue, 7 Dec 2004, Peter Sorotokin wrote:
> > > >
> > > > So would prefixing the majority of the CSS properties with "html-".
> > > > Half :)
> > >
> > > There's nothing HTML-specific about CSS propertes.
> >
> > To be more precise, there is something box-model specific.
> >
> > http://lists.w3.org/Archives/Public/www-svg/2004Dec/0001.html
>True, we could prefix the background-related properties with 'background',
>the font-related properties with 'font', the border-related properties
>with 'border', the list-related properties with 'list'... Oh wait... ;-)

I am not talking about functional grouping. I am talking about all 
CSS-box-model-specific properties that don't make sense outside of CSS box 
model. Why aren't they prefixed with cssbox-? That would be the similar 
prefixing scheme that you want to impose on SVG. For functional-level 
grouping we already use prefixes, such as stroke and stroke-... properties 
or overlay and overlay-host.

>However, my concern is that SVG 1.2's proposed names are actually harming
>this property separation, in fact. For example, it introduces the
>'background-fill' property despite that property having nothing to do with
>any of the other 'background-*' properties.

CSS box model background properties to be precise; just like CSS box model 
background properties are more or less useless for SVG renderer. These 
things are renderer-specific. But in that particular case I agree that it 
is a good idea to rename it to avoid confusion.

>  It introduces one-word
>properties that only apply to specific models (one-word properties in CSS
>usually apply to multiple models).

What?! Just from the top of my head:

margin, border, padding, top, bottom, left, right, width, height, widows

Actually, most CSS2.1 single-word properties (as well as most CSS2.1 
non-single-word properties) apply only to box model and some of them are 
purely aural. There are simply no such conventions, I think you are making 
them up on the spot.


>  And so forth.
>So I don't buy the argument that there is a parallel between prefixing the
>SVG properties with 'svg-' and prefixing the box-model properties with
>Ian Hickson               U+1047E                )\._.,--....,'``.    fL
>http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
>Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 7 December 2004 22:28:32 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:04 UTC