Re: [csswg-drafts] OS cursor size units and property (#12048)

> but a side-effect of this might be that cursor sizes may vary between sites or pages, especially if `cur` units vary with viewport size as well as OS setting.

That's already happening today with cursors on heavily designed sites, like ones commonly found at [awwwards](https://awwwards.com). Like with many CSS properties, there's ways of abusing the presentation. Like having text that is too small or colors that have poor contrast. Having a variable cursor size is expected to be a blessing when used properly and a curse when used poorly.

> Would `cur` units also be affected by page/browser-level zoom?

Mostly like not. The goal is primarily having the cursor behave as the default set does right now. When I zoom, the cursor doesn't change. It's only affected by the OS accessibility setting. I imagine you could get this to work by trying to do a `calc()` with `vw` units if you really wanted that behavior.



-- 
GitHub Notification of comment by ddamato
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12048#issuecomment-2780172066 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Saturday, 5 April 2025 03:26:30 UTC