W3C home > Mailing lists > Public > www-style@w3.org > January 2015

Re: [css-inline] i18n-ISSUE-408: Boxed characters and initial letter properties

From: Richard Ishida <ishida@w3.org>
Date: Fri, 23 Jan 2015 17:39:18 +0000
Message-ID: <54C28746.1040501@w3.org>
To: Florian Rivoal <florian@rivoal.net>
CC: www-style@w3.org, www International <www-international@w3.org>
hi Florian,

On 23/01/2015 14:21, Florian Rivoal wrote:

> To be able to achieve the full effect of your examples, we would also need to be able to apply borders and padding inwards. Currently, http://dev.w3.org/csswg/css-inline/#initial-letter-box only defines a classical model for padding, border and margin (growing outwards from the content-box, which is the one that gets sized).
> The devanagari examples should probably be possible to style with something like this:
> ::first-letter {
>    initial-letter: 3;
>    box-sizing: border-box;
>    border:solid black;
>    padding: 5px; /* Maybe */
> }

My initial reaction was to assume that what's needed is something like 
text-align and vertical-align, applied to the box, rather than padding.


> The Chinese example looks tricky: the top of the 大 character is aligned with the top of the characters on the first line, and the box to which the is applied background extends above; on the lower side though, the box to which the background is applied lines up with the bottom of the characters on the last line, and the bottom of the 大 character aligns with nothing in particular. I am not quite sure what to make of that, both in terms of alignment or sizing.

I'm hesitant to read too much into the Chinese example without seeing 
more examples like it, preferably from higher quality printed materials. 
(The source of this is a newspaper.)

I wonder whether Bobby Tung has some ideas on this.

Received on Friday, 23 January 2015 17:39:55 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:47 UTC