Skip to content

[css-pseudo] [css-fonts-4] Do properties added in CSS Fonts 4 apply to the ::first-* pseudo-elements? #8635

Open
@yarusome

Description

@yarusome

Currently CSS Pseudo-Elements Module specifies for ::fist-letter and ::fisrt-line that:

The following properties apply to ::first-letter, ::first-letter::prefix, and ::first-letter::postfix pseudo-elements:

  • all font properties (see [CSS-FONTS-3]) […]

and:

The following CSS properties apply to a ::first-line pseudo-element:

  • all font properties (see [CSS-FONTS-3]) […]

This phrasing exludes properties added in CSS Fonts Level 4, e.g. font-palette and font-variant-emoji, from being applied to ::fist-letter and ::fist-line. Is this really intended?

Also, there's no WPT for this:
https://wpt.fyi/results/css/css-pseudo/first-letter-allowed-properties.html?label=experimental&label=master&aligned&view=subtest
https://wpt.fyi/results/css/css-pseudo/first-line-allowed-properties.html?label=experimental&label=master&aligned&view=subtest

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions