Re: [css-text-decor-3] text-decoration model should account for 'objects' ∉ 'text-decoration-skip'

On 03/24/2013 07:01 PM, L. David Baron wrote:
> http://dev.w3.org/csswg/css-text-decor-3/#line-decoration describes
> the model for text-decoration drawing, largely analogous to the
> model described in the text chapter of CSS 2.1:
> http://www.w3.org/TR/CSS21/text.html#decoration
> CSS 2.1's model for text-decorations also includes its rules on
> z-ordering of text-decorations in
> http://www.w3.org/TR/CSS21/zindex.html
>
> http://dev.w3.org/csswg/css-text-decor-3/#text-decoration-skip adds
> a new text-decoration-skip property.  When this property's computed
> value does not contain 'objects', text decorations are drawn on
> atomic inlines.
>
>
> The z-ordering of the text-decorations drawn on atomic inlines also
> needs to be specified in such a way that a reader could determine
> exactly where in Appendix E of CSS 2.1 it fits.  It is currently
> unspecified, as far as I can tell.

Good point. Added a new chapter on that:
   http://dev.w3.org/csswg/css-text-decor/#painting-order

   # As in [CSS21], text decorations are drawn immediately over/under
   # the text they decorate, in the following order (bottommost first):
   #
   #  1. shadows (‘text-shadow’)
   #  2. underlines (‘text-decoration’)
   #  3. overlines (‘text-decoration’)
   #  4. text
   #  5. emphasis marks (‘text-emphasis’)
   #  6. line-through (‘text-decoration’)
   #
   # Where line decorations are drawn across box decorations or
   # atomic inlines, they are drawn over non-positioned content
   # and just below any positioned descendants (immediately
   # below layer #8 in CSS2.1 Appendix E).

Let us know if that seems correct/sufficient!

> The model
> (http://dev.w3.org/csswg/css-text-decor-3/#line-decoration) says:
>    # The ‘visibility’ property, ‘text-shadow’, filters, and other
>    # graphical transformations likewise affect text decorations as
>    # part of the text they're drawn on, even if the decorations were
>    # specified on an ancestor box.
>
> This also needs to specify how these effects work with atomic
> inlines.  For example, I would expect 'visibility' on an atomic
> inline that is decorated because of text-decoration-skip to change
> the visibility of the decoration, but I would not expect
> 'visibility' on its descendants to do so.  Likewise, I would expect
> the rules for application of filters to be consistent with the rules
> for z-ordering.

Added
   # (In the case of line decorations drawn over an atomic inline
   # or across box decorations, they are similarly associated with
   # the affected box rather than the decorating box.)
to that paragraph. Let me know if that's sufficiently clear...

~fantasai and Koji

Received on Tuesday, 7 May 2013 01:17:03 UTC