W3C home > Mailing lists > Public > www-style@w3.org > March 2009

Template-Based Positioning

From: David Hyatt <hyatt@apple.com>
Date: Tue, 17 Mar 2009 18:15:44 -0500
Message-id: <97F7C5B1-8A15-4B4B-944E-40AD25A0B384@apple.com>
To: www-style list <www-style@w3.org>
Regarding template-based positioning...

http://www.w3.org/TR/css3-layout/#template-based

Right now the spec works by overloading the display property with the  
layout and the position property with letters.  It seems like tacking  
"-webkit-" in front of these display/position values would be really  
strange.  I have the following suggestions to make regarding the  
syntax to make it easier to provide an experimental implementation  
(and to provide some clarity as well):

(1) Just make the display property take a new value: grid-template.
	display: grid-template

(2) Add a new grid-template property that takes the layout string.

(3) Modify the position property to be more clear that content is  
going into a slot.  Something along the lines of
	position: slot(a)

	instead of just

	position: a

Then vendors could implement this as:

display: -webkit-grid-template
-webkit-grid-template: ....;
position: -webkit-slot(a);

dave
(hyatt@apple.com)
Received on Tuesday, 17 March 2009 23:16:25 GMT

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