Skip to content

[css-pseudo] Settle what happens when first-letter characters are in different elements #2243

@Loirooriol

Description

@Loirooriol

CSS Pseudo says

If the characters that would form the ::first-letter are not in the same element, such as ‘T in <p>‘<em>T..., the user agent may create a ::first-letter pseudo-element from one of the elements, both elements, or simply not create a pseudo-element.

Can't some behavior be settled?

In the first row the characters are in the same element, in the second row they are not, and it's not interoperable at all. https://jsfiddle.net/99ohzgh3/

screenshot

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions