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

Re: [css3-gcpm] Use of string(...) outside of margin boxes

From: Brad Kemper <brad.kemper@gmail.com>
Date: Sat, 22 Oct 2011 00:51:52 -0700
Message-Id: <36D506DA-BC48-4EAA-9F47-9B052F1068B1@gmail.com>
Cc: Peter Moulder <peter.moulder@monash.edu>, "www-style@w3.org" <www-style@w3.org>
To: Håkon Wium Lie <howcome@opera.com>
> On Oct 20, 2011, at 4:14 PM, Håkon Wium Lie <howcome@opera.com> wrote:
>> Unless someone can think of use cases that are worth
>> untangling string-set for general use?

How about a pull quote that updates automatically when the text it pulls from is updated?

How about table of contents links that used the actual text of the H2s they were linked to? For that matter, it'd be nice if the was an automatic way to generate a table of contents; something like this:

h2 { counter-increment: header; }
.TOC { 
content: iterate(h2, 
   "Chapter " counter(header) ": " content(/* of each h2 */);
display:block; /* one block per h2 that was iterated */
text-decoration: underline;
link-target: attr(id, url) /* turns each iteration into a hyperlink to the h2, based on the h2's id attribute */

Sorry, I got a little off topic.
Received on Saturday, 22 October 2011 07:52:23 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:06 UTC