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

(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 UTC