Re: [csswg-drafts] [css-ui-4] Showing crisp cursors

As the default behavior, browsers agree to work in css-pixel space, so we cannot change the default, and I don't think we should even if we could, as having a correctly sized cursor in all browsers seems more important than having it crisp.

That said, having crisp cursors is a reasonable feature to ask for.

I believe that the spec already offers an adequate solution for that, even though it isn't implemented yet:
> User Agents may, instead of `<url>`, support `<image>P which is a superset. 

If you have a look at [the definition of `<image>` in css-images-4](https://drafts.csswg.org/css-images-4/#typedef-image). It includes, among other things, [`image-set()`](https://drafts.csswg.org/css-images-4/#funcdef-image-set)

So, putting that together, this is valid per spec:
```
cursor: image-set( "foo.png" 1x,
                   "foo-2x.png" 2x),
        pointer;
```

I believe that should solve the problem you raised. If so, this is "merely" a matter of getting browsers to support it. Based on that, I think we can close this issue. Do you agree?

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

Received on Wednesday, 28 March 2018 09:16:24 UTC