ISSUE-201: Use numbers in a template to refer directly to the nth child?

Use numbers in a template to refer directly to the nth child?

State:
RAISED
Product:
CSS3 Template Layout
Raised by:
Bert Bos
Opened on:
2011-12-01
Description:
Terra Informatica's HTMLayout program (http://www.terrainformatica.com/htmlayout/) proposes an interesting shortcut for templates: if a slot's name is a number (instead of a letter), it refers directly to the child element with that number. That child is positioned in the slot and doesn't need a 'position' property. See the documentation by Andrew Fedoniouk and Ivan Goroun (http://www.terrainformatica.com/w3/flex-layout/flex-layout.htm). E.g.,

<ul style="display: '2 1'">
<li>one
<li>two
</ul>

puts “two” (the 2nd child) on the left and “one” (the 1st child) on the right. (Note that this requires that the names of the slots in the template are separated by spaces.)
Related Actions Items:
No related actions
Related emails:
  1. Re: [css3-layout] A shortcut with numbers instead of letters in a template (from news@terrainformatica.com on 2011-12-02)
  2. [css3-layout] A shortcut with numbers instead of letters in a template (from bert@w3.org on 2011-12-02)
  3. CSS-ISSUE-201: Use numbers in a template to refer directly to the nth child? [CSS3 Template Layout] (from sysbot+tracker@w3.org on 2011-12-01)

Related notes:

No additional notes.

Changelog:

Created issue 'Use numbers in a template to refer directly to the nth child?' nickname owned by Bert Bos on product CSS3 Template Layout, description 'Terra Informatica's HTMLayout program (http://www.terrainformatica.com/htmlayout/) proposes an interesting shortcut for templates: if a slot's name is a number (instead of a letter), it refers directly to the child element with that number. That child is positioned in the slot and doesn't need a 'position' property. See the documentation by Andrew Fedoniouk and Ivan Goroun (http://www.terrainformatica.com/w3/flex-layout/flex-layout.htm). E.g.,

<ul style="display: '2 1'">
<li>one
<li>two
</ul>

puts “two” (the 2nd child) on the left and “one” (the 1st child) on the right. (Note that this requires that the names of the slots in the template are separated by spaces.)' non-public

Bert Bos, 1 Dec 2011, 18:15:55


Peter Linss <peter.linss@hp.com>, Daniel Glazman <daniel.glazman@disruptive-innovations.com>, Chairs, Chris Lilley <chris@w3.org>, Bert Bos <bert@w3.org>, Staff Contacts
Tracker: documentation, (configuration for this group), originally developed by Dean Jackson, is developed and maintained by the Systems Team <w3t-sys@w3.org>.
$Id: index.php,v 1.323 2013-12-19 14:47:09 dom Exp $