Skip to content

CSS specificity and order of declaration #55

Open
@knubie

Description

@knubie

In some cases, the order of declaration matters, for example when applying :hover and :active pseudoselectors. Because an element can be in both a :hover and :active state at the same time, it's important to declare :active after :hover, so that it takes precedence. Cljss doesn't seem to take order of declaration into account, which can make it impossible to correctly apply certain pseudoselectors like the ones above on a single element.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions