- From: Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no>
- Date: Fri, 31 Jan 2014 16:29:31 +0100
- To: Antony Kennedy <antony@silversquid.com>
- Cc: Matthew Robb <matthewwrobb@gmail.com>, www-style list <www-style@w3.org>
Antony Kennedy, Fri, 31 Jan 2014 15:11:15 +0000: > I’ve often thought that ::surround and ::contain as pseudo-elements > would be useful. > > i.e. ::surround would (effectively) change: > > <div>Text</div> > > …to: > > <newelement><div>Text</div></newelement> > > …and ::contain would (effectively) change: > > <div>Text</div> > > …to: > > <div><newelement>Text</newelement></div> > > This would enable us to take all those crufty divs and spans that we > just need for presentational hooks, and move them into the > presentation layer where they belong. > > Is there already something to achieve this that I’m unaware of? Thoughts? I don’t think that this would cut it, at least not for the use case I described. It seems evident that you have in mind a CSS feature which wraps around a single element or around all the content of a single element. Also, since your use case seems to presuppose that a wrapper already exists, one use case also does not need this feature very much, IMO. My proposal wraps around all none-heading content of a (sectioning) element. As well, it is linked to a concept - body text: http://en.wikipedia.org/wiki/Body_text -- leif halvard silli
Received on Friday, 31 January 2014 15:30:00 UTC