Re: [csswg-drafts] [css-ui-3] auto cursor should behaves as default cursor except for text?

>  Is the spec wants cursor doesn't show it's over link and over input area?

No, that is not the goal of the spec. The cursor is expected to change (hand over link, I-beam over input area…), but it is expected to do that using the UA stylesheet, not using the `auto` value.

When we looked at standardizing exactly what the auto value does, we decided using `auto` to do all the cursor changes in different contexts was not a good approach: the list of situations where it needs to change to something would be very long, and possibly changing over time, making it difficult to standardize.

As some elements contain text AND empty areas, and it is not possible to use selectors to tell these appart, `auto` needs to handle that, and switch from the default cursor to the I-beam when it is over empty areas or over text. However, to switch to the pointer cursor over links, you can simply add `:any-link { cursor: pointer; }` in the UA stylesheet. Similarly, `textarea { cursor: text; }` will give you the I-beam over `<textarea>` elements.

I think it would be fair to add a note to the specification to clarify that expectation, but I do not think any behavior change is needed.

However, if you find situations where you want to change the cursor but cannot do it in the UA stylesheet, please let us know. That would absolutely be something to consider for an addition to the specification.

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

Received on Friday, 14 July 2017 01:37:06 UTC