W3C home > Mailing lists > Public > www-style@w3.org > January 2011

set <bg-size> in 'background' shorthand property, syntax of forward slash '/'

From: <tao.yu@nokia.com>
Date: Thu, 20 Jan 2011 15:36:52 +0000
To: <www-style@w3.org>
Message-ID: <2541CC5D225E5340A31E01FE6EC795F50283582D@008-AM1MPN1-023.mgdnok.nokia.com>
Hi,

I was looking at the CSS3 Backgrounds & Borders spec for 'background' shorthand property. The <bg-layer> syntax is:

<bg-layer> = <bg-image> || <bg-position> [/ <bg-size>]? || <repeat-style> || <attachment> || <box>{1,2}

My question here is: if <bg-size> is specified (via a forward slash '/'), should it follow a valid <bg-position> immediately?

Two examples (Example XV & XVI) in spec NOT set <bg-size> after <bg-position> immediately, like Example XVI:

    E { background: #CCC top left url("metal.jpg") / 100% auto no-repeat}
Is this correct?

Thanks,
-Tao
Received on Thursday, 20 January 2011 15:37:34 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:36 GMT