Skip to content

pseudo-class at start of atrule parsed as typeselector #170

@bartveneman

Description

@bartveneman
@media all {
	:focus-visible {}
}

Reported as

StyleSheet (1)

    children:
        Atrule (3)
            name: "media"
            value: "all"
            children:
                AtrulePrelude (40)
                    children:
                        MediaQuery (32)
                            children:
                                MediaType (34)
                Block (7)
                    children:
                        Rule (2)
                            children:
                                SelectorList (20)
                                    children:
                                        Selector (5)
                                            children:
                                                TypeSelector (21)
                                                    name: "focus-visible"
                                Block (7)

That TypeSelector (21) should be a PseudoClassSelector

repro url: https://www.projectwallace.com/ast-explorer#JTIyJTQwbWVkaWElMjBhbGwlMjAlN0IlNUNuJTVDdCUzQWZvY3VzLXZpc2libGUlMjAlN0IlN0QlNUNuJTdEJTIy

version: 0.13.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions