W3C home > Mailing lists > Public > www-style@w3.org > September 2012

Re: [css3-text] text-decoration-order

From: Kang-Hao (Kenny) Lu <kanghaol@oupeng.com>
Date: Fri, 21 Sep 2012 07:43:52 +0800
Message-ID: <505BAA38.5010006@oupeng.com>
To: Sebastian Zartner <sebastianzartner@gmail.com>
CC: fantasai <fantasai.lists@inkedblade.net>, WWW Style <www-style@w3.org>, 张立理 <otakustay@gmail.com>
(12/09/20 14:44), Sebastian Zartner wrote:
> As I understand the CSS 2.1 specification fantasai mentioned[2] it's just
> describing how line decorations of different elements are painted in regard
> to each other, but it's not described how they should be drawn in relation
> to the text.

I don't think that's true. Appendix E is relatively clear here:

  # 1. any underlining affecting the text of the element, in tree order
  #    of the elements applying the underlining (such that the deepest
  #    element's underlining, if any, is painted topmost and the root
  #    element's underlining, if any, is drawn bottommost).
  # 2. any overlining affecting the text of the element, in tree order
  #    of the elements applying the overlining (such that the deepest
  #    element's overlining, if any, is painted topmost and the root
  #    element's overlining, if any, is drawn bottommost).
  # 3. the text.
  # 4. any line-through affecting the text of the element, in tree
  #    order of the elements applying the line-through (such that the
  #    deepest element's line-through, if any, is painted topmost and
  #    the root element's line-through, if any, is drawn bottommost).

. As fantasai said, line-through is above text and underling and
overlining are below.

Whether we can change that is another question.

> [2] http://www.w3.org/TR/CSS21/zindex.html#painting-order


Cheers,
Kenny
-- 
Web Specialist, Oupeng Browser, Beijing
Try Oupeng: http://www.oupeng.com/
Received on Thursday, 20 September 2012 23:44:10 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:00 GMT