W3C home > Mailing lists > Public > public-css-testsuite@w3.org > January 2011

Re: text-decoration-087

From: L. David Baron <dbaron@dbaron.org>
Date: Wed, 26 Jan 2011 14:26:03 -0800
To: "Gérard Talbot" <css21testsuite@gtalbot.org>
Cc: Geoffrey Sneddon <gsneddon@opera.com>, Public CSS test suite mailing list <public-css-testsuite@w3.org>
Message-ID: <20110126222603.GA18705@pickering.dbaron.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 26 January 2011 23:34:50 GMT