W3C home > Mailing lists > Public > www-style@w3.org > January 2009

Re: @page margin boxes and text-decoration

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Mon, 19 Jan 2009 06:41:13 +0100
To: Michael Day <mikeday@yeslogic.com>
Cc: "www-style@w3.org" <www-style@w3.org>, "Grant, Melinda" <melinda.grant@hp.com>
Message-ID: <sc48n4d5carh4eaf8e9kup19377jab12sj@hive.bjoern.hoehrmann.de>

* Michael Day wrote:
>In this example, will the text be underlined:
>
>@page {
>     text-decoration: underline;
>     @top { content: "Hello, world!" }
>}
>
>The text-decoration property is not inherited, but when applied to 
>blocks it does result in the decoration being applied to all the 
>children of the block.

I am unsure where the confusion arises from, according to the draft the
text-decoration declaration sets the initial value of the property in
the margin boxes, so, as I understand that, this would essentially be
the same as

  @page { @top {
    text-decoration: underline;
    content: "Hello, world!"
  } }

See <http://www.w3.org/TR/css3-page/#page-properties>.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de
25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Monday, 19 January 2009 05:41:51 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:15 GMT