Skip to content

[css-inline][css-text][css-pseudo] Define more details of the "first formatted line" #10990

Open
@kojiishi

Description

@kojiishi

Discussing on wpt tests for text-box-trim with @fantasai raised questions about the first formatted line.

Currently, the ::first-line pseudo-element and the text-indent property use this definition.

This test@jsbin indicates that browsers use different criteria for the "first formatted line".

TestGeckoWebKitBlink
Content in a nested div text-indent YesYesYes
::first-line NoYesYes
An empty div before content text-indent NoNoNo
::first-line NoNoNo
An empty div before nested content text-indent YesYesYes
::first-line NoNoNo
An empty div with an empty line before nested content text-indent YesYesYes
::first-line NoNoNo
An empty anonymous block with an empty line before nested content text-indent YesYesYes
::first-line NoYesNo

Can we define the desired behavior for these cases?

@fantasai @nt1m @vitorroriz @Clqsin45 @bfgeek @lilles @jfkthame

Metadata

Metadata

Assignees

No one assigned

    Labels

    Closed as Question AnsweredUsed when the issue is more of a question than a problem, and it's been answered.css-inline-3Current Workcss-pseudo-4Current Work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions