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.

Display change log ATOM feed


Alan Stearns <stearns@adobe.com>, Rossen Atanassov <ratan@microsoft.com>, Chairs, Chris Lilley <chris@w3.org>, Fuqiao Xue <xfq@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: 201.html,v 1.1 2020/01/17 10:39:26 carcone Exp $