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

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