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

Re: [CSS Regions] Update available

From: Christoph Päper <christoph.paeper@crissov.de>
Date: Mon, 28 Mar 2011 15:36:27 +0200
Message-Id: <207B807C-C97B-4483-9125-C29F73BC7F57@crissov.de>
To: "www-style@w3.org list" <www-style@w3.org>
Arno Gourdol:

> http://dev.w3.org/csswg/css3-regions/

It seems you made quite some improvements.

I still prefer at-rules for slots, for instance your (currently) fifth example

    body::slot(element1) { content: "box one" }
    body::slot(element2) { content: "box two" }
    body::slot(element3) { content: "box three"}
    %element1, %element2, %element3 {
      float: left; width: 100px; height: 100px;
    }

should become

  @slot "element1" { content: "box one" }
  @slot "element2" { content: "box two" }
  @slot "element3" { content: "box three"}
  @slot "element1", "element2", "element3" {/* or:
  @slot "element1", @slot "element2", @slot "element3" {*/
    float: left; width: 100px; height: 100px;
  }
  body::after {content: slot(element1) slot(element2) slot(element3);}

which both render

  <body>
    <p>First paragraph</p>
  </body>

as something like

   First paragraph
   box one     box two     box three
  |---100px---|---100px---|---100px---|
Received on Monday, 28 March 2011 13:37:02 GMT

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