W3C home > Mailing lists > Public > www-style@w3.org > July 2014

Re: [css-writing-modes] elements that `text-combine-upright` applies

From: fantasai <fantasai.lists@inkedblade.net>
Date: Wed, 30 Jul 2014 19:09:41 +0100
Message-ID: <53D934E5.3000802@inkedblade.net>
To: Masataka Yakura <myakura.web@gmail.com>, "www-style@w3.org" <www-style@w3.org>
On 07/29/2014 01:28 PM, Masataka Yakura wrote:
> Currently the definition table `text-combine-upright` [1] says the property applies to "non-replaced inline elements".
>
> However, in Example 18 which explains the result of `text-combine-upright: digits 2` applied to the fragment `<p>あれは10,000
> 円ですよ!</p>`, the figure shows that a span of characters ("10") are combined even the element applied is a block element.
>
> What does that mean? Is the example is wrong, the propdef is wrong (it should say "non-replaced elements"), or neither (like
> the case of `digits` it applies to block elements as well)?
>
> [1] http://dev.w3.org/csswg/css-writing-modes/#propdef-text-combine-upright

The example is correct. What you're missing here is that the inline
contents of a block container are wrapped in an anonymous inline
element: they are not directly contained by the block.

Therefore example works by inheriting from the <p> to the anonymous
inline, and applying there.

Let me know if that makes sense. :)

Here is the 2.1 spec on this:
   http://www.w3.org/TR/CSS21/visuren.html#anonymous

(The equivalent Level 3 spec is likely to describe a single "root
inline box" which wraps around all of the inline-level contents.
It's probably best to assume that is how it works.)

~fantasai
Received on Wednesday, 30 July 2014 18:10:18 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:23 UTC