- From: Matt Blissett <matt@blissett.me.uk>
- Date: Thu, 15 Apr 2004 21:32:36 +0100
- To: "W3C Style" <www-style@w3.org>
On Thu, 15 Apr 2004 20:34:51 +0200, Tonico Strasser <tonico@hotpop.com> wrote: > Hi, > > a quick question: would it make sense to allow authors to rearrange the > structure of a document wit CSS? > > Something like: > > .icon { > source-order: -1; > } I don't think we need anything like that, CSS adds _style_, it is not for CSS to move content around. This also adds a huge layer of complication -- consider selectors that depend on an elements relative position (:first-child and E + F &c) > <h1>Foo Bar<h1> > <span class="icon">(Question)</span> > > Should be displayed as: > > (Question) > > Foo Bar > > (Bad example, I know :/ I hope you understand what I mean.) That would be better marked up as <h1><span class="icon">(Question)</span> Foo Bar</h1> Or, even better: <h1>Foo Bar</h1> h1:before { content: '(Question)'; display: block; } -- Matt
Received on Thursday, 15 April 2004 16:33:17 UTC