VBC-022: custom-cursor-css
warningCategory: ux-dx
Analysis: Regex (line by line)
File types: .css, .scss, .less
Scope: source code only, ignoring anything inside strings and comments
Tags: ux
What it reports
Custom cursor via CSS url() at line {line}. Custom cursors are often laggy, pixel-inaccurate, and confusing for users who rely on their cursor to interact with native OS elements. This is a hallmark of style-over-function design.
Flagged
css
body { cursor: url(cat.png), auto; }Not flagged
css
body { cursor: default; }Pattern
regex
cursor:\s*url\s*\(