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

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

From: Masataka Yakura <myakura.web@gmail.com>
Date: Mon, 4 Aug 2014 14:12:53 +0900
Message-ID: <CANJXhd0-uMNGXSjquFy72O8HN6ShMRgBPkFE6NLvOEEAWHfaHA@mail.gmail.com>
To: fantasai <fantasai.lists@inkedblade.net>
Cc: "www-style@w3.org" <www-style@w3.org>
Ooops, had seen that section but somehow skipped the very first paragraph.
Thanks!


On Thu, Jul 31, 2014 at 3:09 AM, fantasai <fantasai.lists@inkedblade.net>
wrote:

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



-- 
Masataka Yakura
<myakura.web@gmail.com>
Received on Monday, 4 August 2014 05:14:06 UTC

This archive was generated by hypermail 2.3.1 : Monday, 4 August 2014 05:14:06 UTC