Skip to content

Redundant styles cursor and cursor:hover #74

Description

@sselvaggi

Hi, I don't understand when the 2nd rule would be useful
in case we define --cur and we hover this element we will see the defined cursor

AFIK defined cursor is only shown while we hover the element.
What is the reason for defining cursor property for :hover?

[style*="--cur:"] {
cursor: var(--cur) !important;
}
[style*="--cur:"]:hover {
cursor: var(--cur, var(--cursor));
}

I see there is a fallback value in the second rule.
But It has not any effect:
if the attr style has --cur defined It will show --cur
otherwise the rule does not match and var(--cursor) is not used

Thanks

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