- From: Marat Tanalin | tanalin.com <mtanalin@yandex.ru>
- Date: Sat, 04 Feb 2012 02:38:04 +0400
- To: www-style@w3.org
- Cc: Hugh Guiney <hugh.guiney@gmail.com>,whatwg <whatwg@whatwg.org>
04.02.2012, 00:22, "Ian Hickson" <ian@hixie.ch>: > On Tue, 10 Jan 2012, Hugh Guiney wrote: > >> As I understand it, the main reason for rejecting <di> was that it >> solves a problem that is allegedly CSS's job, but as an author who uses >> <dl>s quite extensively, adding a grouping element would really make my >> life a lot easier. > > There are a number of places in HTML where it would be nice to be able to > group things together -- just look at how often people stick <div>s in > their pages for no purpose whatsoever other than styling. > > This shouldn't be necessary. It's a limitation of CSS. > > The right solution is for CSS to provide some pseudo-element or other > mechanism that introduces an anonymous container into the rendering tree > that wraps the elements you want to wrap. For example, with the square > brackets representing the anonymous boxes: > > <dl> > [<dt><dd>] > [<dt><dd>] > </dl> > > dl::group(dt...dd) { border: solid; } > > <header> > <p><a href="/">Home</a> > [ > <h1>The Blog</h1> > <p class="byline">Our blog away from home > ] > <p class="copyright">Bla bla > </header> > > header::group(h1...p.byline) { border: solid; } > > This isn't a formal proposal, but you get the idea. If we solve this > problem, the need for <di> completely goes away, but more importantly, so > does the need for a huge number of <div>s. > > -- > Ian Hickson U+1047E )\._.,--....,'``. fL > http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. > Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.' The problem is that it will most likely not be solved via CSS (solved means we have finished CR spec and all browsers supports it) in near 10 years or so, while DIV wrapper work _right now_ in all browsers.
Received on Friday, 3 February 2012 22:38:45 UTC