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

> 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