-
Notifications
You must be signed in to change notification settings - Fork 756
Closed
Labels
Description
From the spec., It's not clear about how an initial letter should sink. I mean, we should specify that an initial-letter's baseline should be aligned with the Nth line's baseline, where N is the initial-letter's sink argument or something similar. For example, what would authors like to see if we have
<p>This line <img> has a tall image.</p> with the p having initial-letter styles and the img having vertical-align style set to top?
Looks like the only implemented vendor, Safari, also has this kind of issue. The rendering result of
<style>
div { max-width: 500px; }
p::first-letter { -webkit-initial-letter: 3 2; }
</style>
<p>Second paragraph <img style="height: 50px; width: 10px; vertical-align: top; background-color: blue;"/>with a capital initial letter. An initial letter
does not affect the position of its containing element. For “raised
caps” or “sunken caps,” the effect is created as if the text around the
initial letter was pushed down, rather than the letter extending up into
previous elements.</p>
is as follows:
It'd be better to clearly specify how an initial letter should sink, an example like above would be great.
