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

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 UTC