[css3-grid-layout] relationship between 'grid-column', 'grid-column-position' and 'grid-column-span'

The spec says

   # The ‘grid-column-position’ and ‘grid-column-span’ properties
   # can be simultaneously specified with the ‘grid-column’ shorthand
   # property.

, but what would 'grid-column: "undefined1" "undefined2";' get expanded to?

It would expect 'grid-column-position' to have 'undefined1' but what
about 'grid-column-span'? The initial value '1'? But what happens when
"undefined2" and "undefined1" are defined later?

This does't seem to match the notion of shorthand property in CSS 2.1.
Perhaps 'grid-column' only becomes a shorthand when computed values are
determined? If so, this needs to be clarified.


Also,

  # EXAMPLE 17
  #
  # <style type="text/css">
  # #item {
  #    /* the following two property definitions are equivalent */
  #    /* both place the item between the first and third line */
  #    /* which is covering the first and second row of the Grid */
  #    grid-row-position: 1 3;
  #    grid-row-position: 1; grid-row-span: 2;
  # }
  # </style>

but the grammar has

  # Name: grid-row-position
  # Value: <integer> | <string> | <identifier> | auto

, so I guess something is wrong.


Cheers,
Kenny
-- 
Web Specialist, Oupeng Browser, Beijing
Try Oupeng: http://www.oupeng.com/

Received on Wednesday, 7 November 2012 12:31:30 UTC