Re: Mandate longhand naming conventions

(12/04/06 16:28), Lea Verou wrote:
> Unfortunately, this convention is not strictly followed anymore. I can
> count at least three violations off the top of my head:
> - css3-multicol: `columns` is the shorthand for `column-width` and
> `column-count` even though it doesn't start with `column-` [1]

I was recently confused by this one. I remember fantasai say something
like we don't usually do put in plural (or other English construct) in
the CSS language or something but I can't find it in the archive. 

> - css3-text: `white-space` is (kind of) a shorthand for
> `text-space-collapse` and `text-wrap`, even though neither of these
> properties start with `white-space-` [2]. 
> [snip how bad the 'white-space' shorthand is]
> - css3-transforms: `transform-origin` and `transform-style` is not part
> of a longhand for `transform` even though their naming suggests so. [3]
> Same with `perspective` and `perspective-origin` [4]

I'll add one more too

- css3-background: 'border-radius' is not part of 'border'

> I understand that it's too late to change most of these. What I'm
> suggesting is to:
> 1. Make the convention mandatory from now on, so that the number of
> violations does not increase. It's easier to deal with a rule that has
> few exceptions than to not have a rule at all.
> 2. Document the exceptions in an official list that script authors and
> trainers can use.

I'm not sure about the first idea, but I like the second, with
s/offical/shared/. I'm not sure it's a good idea if this is on the
subpage of the Testing wiki page[1], but at least that is open to the
public.


[1] http://wiki.csswg.org/test


Cheers,
Kenny

Received on Friday, 6 April 2012 09:28:06 UTC