W3C home > Mailing lists > Public > www-style@w3.org > February 2014

[css3-background] Inconsistencies in background shorthand examples

From: Stewart Brodie <sbrodie@espial.com>
Date: Fri, 7 Feb 2014 13:26:02 +0000
To: <www-style@w3.org>
Message-ID: <gemini.n0mnze00h7xm70dj5.sbrodie@espial.com>

There are inconsistencies in the examples in "3.10. Backgrounds Shorthand:
the‘background’property", specifically regarding the background-repeat
property's value: examples 15 and 18 are different to the other examples.

Example 18 shows multiple comma separated values for the background
shorthand and describes the values assigned to each individual sub-property,
using this example:

    background: url(a.png) top left no-repeat,
                url(b.png) center / 100% 100% no-repeat,
                url(c.png) white;

It explains that for background-repeat, this means:

    background-repeat:     no-repeat, no-repeat no-repeat, repeat;

I think it should be:

    background-repeat:     no-repeat, no-repeat, repeat;

If not, then why not?

This is the shorthand expansion, not the computed value, so the computed
value (which is "no-repeat no-repeat, no-repeat no-repeat, repeat repeat")
should not be relevant here and serialization would naturally collapse back
to "no-repeat, no-repeat, repeat" anyway (quotes used only to delimit value
from prose!)

Both of the expansions shown in example 15 have the same issue.

Stewart Brodie
Senior Software Engineer
Team Leader ANT Galio Browser
Espial UK
Received on Friday, 7 February 2014 13:26:43 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:19 UTC