Skip to content

[css-inline] Line breaks inside drop-caps? #2886

@litherum

Description

@litherum

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions