CSS1 & background-position

As I implement aspects of CSS1 I have run into an attribute which could be
complicated to implement (depending on how it's done).

In the background-position area, it's stated that when 2 length or
percentage values are given the horizontal position comes first.  That's
fine.  Now when it comes to keywords, it seems they could be dropped in, in
any order since 'top' == 'top center' == 'center top' == '50% 0%'

The complicated part of this is that 'center' is used for both horizontal
and vertical positioning. So if you process things by keyword and you get
'center top' you have to look at the whole group of keywords to figure out
what's going on rather than the nicer percentage/length approach which
tells you what to expect in what order.  I know HTML tends to use 'middle'
for vertical positioning and 'center' for horizontal positioning.

Might it be less confusing for both browser writers and for third party
developers to use 'middle' rather than 'center' for vertical positioning,
or to make the order of appearance (if 2 keywords are used) the same as the
percentage/length scheme.

Just a thought...

Tom Schlarman


------
Tom Schlarman
tschlarm@adobe.com

Received on Tuesday, 17 December 1996 18:48:49 UTC