W3C home > Mailing lists > Public > public-css-archive@w3.org > July 2018

[csswg-drafts] [css-inline] Line breaks inside drop-caps?

From: Myles C. Maxfield via GitHub <sysbot+gh@w3.org>
Date: Fri, 06 Jul 2018 00:40:39 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-338768525-1530837638-sysbot+gh@w3.org>
litherum has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-inline] Line breaks inside drop-caps? ==
https://drafts.csswg.org/css-inline-3/#propdef-initial-letter

The spec says

> the initial-letter property applies ... to inline-level boxes that are placed at the start of the first line.

And the example shows how you can sink whole phrases:

```
<p><span><em><b>This phrase</b> is styled</em> <strong>specially</strong>. &hellip;</span>
If we apply the following rules:

em { initial-letter: 2; }
b { initial-letter: 3; }
The result might be rendered as

[ADD RENDERING HERE]
THIS PHRASE IS STYLED specially. …
```

So what happens when there is a line-break in the middle of the sunken content? We shouldn't stack the sunken values.


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2886 using your GitHub account
Received on Friday, 6 July 2018 00:40:42 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 9 October 2019 08:16:45 UTC