Re: text-decoration-087

On Wednesday 2011-01-26 13:25 -0800, "Gérard Talbot" wrote:
> 
> Le Mer 26 janvier 2011 12:51, L. David Baron a écrit :
> > We were just discussing this test:
> > http://test.csswg.org/suites/css2.1/20110111/html4/text-decoration-087.htm
> >
> > The test is currently incorrect; the:
> >   test
> >   test
> >   test
> > inline-block should not be underlined.
> 
> "images and inline blocks must not be underlined."
> http://www.w3.org/TR/CSS21/text.html#lining-striking-props
> 
> but
> 
> "The baseline of an 'inline-block' is the baseline of its last line box
> in the normal flow"
> http://www.w3.org/TR/CSS21/visudet.html#leading
> so the 3rd "test" word in that inline-block must look as if it is
> underlined

No, that's no longer the case.  text-decoration applies only to
text:
  # Underlines, overlines, and line-throughs are applied only to
  # text (including white space, letter spacing, and word spacing):
  # margins, borders, and padding are skipped. User agents must not
  # render these text decorations on content that is not text. For
  # example, images and inline blocks must not be underlined. 

This was a change from older drafts, but is compatible with the way
text-decoration used to work until CSS 2.0 tried to drag it in an
incompatible (and problematic) direction.

-David

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

Received on Wednesday, 26 January 2011 23:34:36 UTC