W3C home > Mailing lists > Public > www-validator-css@w3.org > June 2004

Order of background shorthand property

From: Eric Hodel <drbrain@segment7.net>
Date: Wed, 2 Jun 2004 08:50:59 -0700
To: www-validator-css@w3.org
Message-ID: <20040602155059.GH82267@segment7.net>
The validator silently changes the order of the background shorthand
property, but gives no warnings.  Mozilla and Safari both ignore the
background shorthand property if given an invalid order (some like
border accept out-of-order values).  IE (and seemingly Opera) both
accept an invalid order.

(Maybe Mozilla and Safari fail on missing properties.)

For example, with the rule:

#main1 {
  width: 755px;
  background: url("background.png") top left repeat-y;

The validator returns:

#main1 {
  width: 755px;
  background: url("background.png") repeat-y 0% 0%;

Note that the background-position and background-repeat properties have
been swapped, should this give a warning?.  I'm unsure what CSS or CSS2
has to say about ordering of shorthand properties.

Eric Hodel - drbrain@segment7.net - http://segment7.net
All messages signed with fingerprint:
FEC2 57F1 D465 EB15 5D6E  7C11 332A 551C 796C 9F04

Received on Wednesday, 2 June 2004 12:04:45 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:40:40 UTC