-
Notifications
You must be signed in to change notification settings - Fork 756
Description
@tabatkins mentioned earlier 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 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).
The flex shorthand 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