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
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