Skip to content

[css-pseudo] ::first-letter and pseudo-elements #4578

@ryuran

Description

@ryuran

Hello

At the beginning I declared a bug on Blink, but it's now "Won’t fix" according to the blur in the specification around it.

https://bugs.chromium.org/p/chromium/issues/detail?id=647239#c4

https://drafts.csswg.org/css-pseudo-4/#generated-content

As with the content of regular elements, the generated content of ::before and ::after pseudo-elements may be included in any ::first-line and ::first-letter pseudo-elements applied to its originating element.

https://drafts.csswg.org/css-pseudo-4/#first-letter-pseudo

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.

"may" but how to know if it should or not ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions