Skip to content

Pseudo element selectors should use two colons #523

@fi5er

Description

@fi5er

Currently, CSSLint doesn't warn if selectors for pseudo elements use the form :before or :after instead of ::before and ::after. The latter is the correct syntax as per the W3C specification (and has been since 2001).

The double-colon form is recognized by all modern browsers. The single-colon form is still widely used to accommodate IE8. IMO, at this point in time, CSSLint should emphasize the correct form over the backward compatible form.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions