Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redundant styles cursor and cursor:hover #74

Open
sselvaggi opened this issue Sep 14, 2021 · 0 comments
Open

Redundant styles cursor and cursor:hover #74

sselvaggi opened this issue Sep 14, 2021 · 0 comments

Comments

@sselvaggi
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant