CSS1 & background-position

Tom Schlarman (tschlarm@Adobe.COM)
Tue, 17 Dec 1996 16:57:24 -0700

Message-Id: <199612172349.PAA09907@elroy.corp.Adobe.COM>
From: "Tom Schlarman" <tschlarm@Adobe.COM>
To: "wwwhtml" <www-html@w3.org>
Subject: CSS1 & background-position
Date: Tue, 17 Dec 1996 16:57:24 -0700

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