quotes-035.htm and Opera

We're trying to get to having two passing implementations of
http://test.csswg.org/suites/css2.1/20101001/html4/quotes-035.htm

Gecko currently passes, and Opera is reasonably close.

I took a look at why Opera is failing, and I think it comes down to
two bugs:

 (1) When the quote nesting depth is greater than the number of
     provided types of quotes, then the last pair of quotes is
     supposed to be used:
       # If the depth is greater than the number of pairs, the last
       # pair is repeated.
       --http://www.w3.org/TR/CSS21/generate.html#quotes-insert
     Opera currently uses " instead.

 (2) Opera allows the quote nesting depth to be reduced below zero,
     and renders a " for open-quote or close-quote that are at a
     depth below 0 (like it does for past the quotes list).
     Instead, it should do what the spec describes here:
       # A 'close-quote' or 'no-close-quote' that would make the depth
       # negative is in error and is ignored (at rendering time): the
       # depth stays at 0 and no quote mark is rendered (although the
       # rest of the 'content' property's value is still inserted). 
       --http://www.w3.org/TR/CSS21/generate.html#quotes-insert

I believe these are the only issues needed to fix quotes-035, since
the attached diff to the test works around both of these issues and
leads to Opera passing.

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/

Received on Tuesday, 25 January 2011 22:51:36 UTC