Skip to content

[css-syntax] '>>' and '>>>' should be a token #712

@TakayoshiKochi

Description

@TakayoshiKochi

CSS scoping spec defines >>> as shadow-piercing descendant combinator:
https://drafts.csswg.org/css-scoping/#deep-combinator

CSS selectors defines >> as descendant combinator:
https://drafts.csswg.org/selectors-4/#descendant-combinator

Currently CSS syntax does not specify these (>> and >>>) as tokens,
and >>> is parsed as 3 consecutive delim-token(>) s.
https://drafts.csswg.org/css-syntax/

Therefore >/**/>/**/> is allowed to mean a >>> combinator, but probably
it does not make any sense. We propose to define >> and >>> as
distinct tokens.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions