Stuart Ballard wrote:
> From an outsider's perspective, though, it seems like it should at least
> be highly optimizable (almost to the point that the entire code would be
> a special case) - the width of the generated content would be constant,
> so the linewrapping could all just be done at the appropriately reduced
> width.
> 
> You would have to either assume that the generated content only
> inherited the style of the block-level element (so that for example
> 
> > some <b>bold
> > text</b> here
> 
> would not bolden the second ">"), but given that rule, it should be easy
> to implement without complexifying the rules too much.

That rule would be REALLY hard to implement.

> The only real
> difficulty that I can imagine would be if the combined :before and
> :after content were wider than the width of the box - but I'm sure that
> Gecko eats special cases like that for breakfast! :)

You need a more vivid imagination. Think about how this would work with
floats, tables, :first-letter, :first-line, and RTL text. Then think about
how it would work with all these things together :-). Oh, don't forget
about nested quoting.

Rob
-- 
[Robert O'Callahan http://www.cs.cmu.edu/~roc 7th year CMU CS PhD student
"Now when Joshua was near Jericho, he looked up and saw a man standing in
front of him with a drawn sword in his hand. Joshua went up to him and
asked, 'Are you for us or for our enemies?' 'Neither,' he replied, 'but
as commander of the army of the LORD I have now come.'" - Joshua 5:13-14]

Reply via email to