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

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

From: Kang-Hao (Kenny) Lu <kanghaol@oupeng.com>
Date: Wed, 07 Nov 2012 20:30:53 +0800
Message-ID: <509A547D.8010004@oupeng.com>
To: WWW Style <www-style@w3.org>
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 GMT

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