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

Re: [css3-lists] Published as WD!

From: Brad Kemper <brad.kemper@gmail.com>
Date: Mon, 30 May 2011 08:29:29 -0700
Cc: www-style list <www-style@w3.org>
Message-Id: <B2BA9A1D-3178-4008-AF1F-DA0B69E8990F@gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>

On May 29, 2011, at 8:55 PM, Tab Atkins Jr. wrote:

>> With my version's concept, you could write something like this:
>> li::marker { content: "→ " first-scoped("b") ":"; font-weight: normal; }
>> li b { color: red; }
>> li::marker i { color: green; font-weight: bold; }
>> and this markup:
>> <li><b>102.51.31<i>b</i></b> In accordance with section <b>103</b>, bla
>> bla</li>
>> <li><b>102.51.31<i>c</i></b> yada yada</li>
>> And end up with something like this:
>> → 102.51.31b: In accordance with section 103, bla bla
>> → 102.51.31c: yada yada
>> ...in which only the ::marker rule styles the marker text and the only thing
>> red is "103", because the first B of line is no longer part of the LI
>> content.
>> Since the B element would still exist inside the marker, it would still
>> receive the general styling of bold, unless overridden as in the example.
>> But it wouldn't be in the primary box of the LI any more, and wouldn't get
>> LI B styles.
>> I think this is unambiguous and much easier to understand, and more in line
>> with your other ::marker concepts. Even 'position:marker' is not as clear
>> and simple. (I'm not tied to the name, "first-scoped()",
>> "scoped-descendant()", "select-within()", or whatever.)
> This actually starts to sound more like a Region thing, where you're
> reflowing an element into another place.  That should be doable, but
> it's also more complex than you strictly need here.

Come on; that is clearly a misrepresentation. It is not even close to that complex. It is more like footnotes, but even simpler than that. It is taking an element (or maybe just its contents) out of where it appears in the source and putting it in another place that never varies. There is no crossing of boundaries, no writing rules based on two different selectable locations,  no need for "flows" or concatenation of multiple flows, and there is a simple, clear way to select exactly one element for the content for each marker. It is not complex at all, and it does not depend on the Regions module.

>  I'll go ahead and
> just spec position:marker for now.

OK for now, but please note as issue for further consideration. I hope it can be discussed and considered by more than just one or two people to determine the best route forward.
Received on Monday, 30 May 2011 15:30:00 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:46 UTC