W3C home > Mailing lists > Public > www-style@w3.org > October 2012

Re: [css3][background] background-size as the background shorthand

From: François REMY <fremycompany_pub@yahoo.fr>
Date: Fri, 5 Oct 2012 13:51:15 +0200
Message-ID: <0AC12E7B3C2A4E33BA9E6EB00255C1DC@FREMYD2>
To: <ktf.kim@samsung.com>, "fantasai" <fantasai.lists@inkedblade.net>, <www-style@w3.org>
Samsung Enterprise Portal mySingle|  But the author uses "background" after 
using "background-size"
|  because he didn't know "background-size" is a part of background 
shorthand.

As a rule of thumb, any property whose name starts with another property 
name is usually a sub-property of that property. I know there are a few 
exceptions to this, but there was a thread in this mailing list discussing 
the issue where it was agreed (but not resolved) that new sub-properties 
should starts with the parent property name.

Such weird things happen in many languages for convenience. In JavaScript, 
you can set the whole URL with (location=...) or just the hash with 
(location.hash=...). This is maybe more obvious in an imperative language 
than it's in a declarative one like CSS, but it's not completely exotic 
either. 
Received on Friday, 5 October 2012 11:51:35 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:01 GMT