- From: Sebastian Zartner via GitHub <sysbot+gh@w3.org>
- Date: Thu, 23 Jun 2016 07:09:47 +0000
- To: public-css-archive@w3.org
SebastianZ has just created a new issue for https://github.com/w3c/csswg-drafts: == Some property definitions for shorthands should not say 'see individual properties' == @tabatkins [mentioned earlier](https://github.com/w3c/csswg-drafts/pull/184#issuecomment-225682922) that shorthands don't have an initial value. I believe this statement is wrong. Shorthands do have initial values, which are a normally a combination of their longhands. Also, they apply to a specific group of elements, they are inherited or not, they apply to a specific media and have a computed value. So, their property definitions for 'Initial', 'Applies to', 'Inherited', 'Media' and 'Computed value' should be set accordingly. **Examples:** The [`font` shorthand](https://drafts.csswg.org/css-fonts-3/#font-prop) has an initial value of `normal normal normal normal 20px / normal arial` (and not one of the possible keyword values), it applies to all elements, it is inherited, applies to visual media and has a computed value of `<‘font-style’> <‘font-weight’> <‘font-stretch’> <‘font-size’> / <‘line-height’> <‘font-family’>` ([browsers are inconsistent regarding that](https://jsbin.com/rixeziqayi/1/edit?html,css,js,output)). The [`flex` shorthand](https://drafts.csswg.org/css-flexbox-1/#flex-property) has an initial value of `0 1 auto`, it applies to flex items, it is not inherited, applies to visual media anad has a computed value of `<‘flex-grow’> <‘flex-shrink’> <‘flex-basis’>` (and not `none`). Sebastian Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/223 using your GitHub account
Received on Thursday, 23 June 2016 07:09:53 UTC