Skip to content

[css-pseudo-4] ::first-letter should include space separators #5154

@johannesodland

Description

@johannesodland

Some languages requires a space separator between the first-punctuation and the first letter. Both the punctuation and the space separator should be included in the ::first-letter pseudo element.

Browsers treat this differently at the moment. Safari includes spaces, while Chrome does not.
https://bugs.chromium.org/p/chromium/issues/detail?id=638267.

At the moment the spec does not specify that space should be included: https://www.w3.org/TR/css-pseudo-4/#first-letter-pseudo

Examples:

French
The opening quotation mark in French cannot go without a space:
« Voulez-vous un sandwich, Henri ? »

Source: https://en.wikipedia.org/wiki/Quotation_mark#French

Norwegian
Some quotation marks in Norwegian (replikkstrek) cannot go without a space:
– Pettersen, ropte hun, – kom inn og få kaffe.

Source: https://www.sprakradet.no/sprakhjelp/Skriveregler/tegn/Tankestrek/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Closed Accepted by CSSWG ResolutionTestedMemory aid - issue has WPT testscss-pseudo-4Current Worki18n-trackerGroup bringing to attention of Internationalization, or tracked by i18n but not needing response.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions