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

>  think the definition of "auto" in spec is not clear.
> It says "auto: The UA determines the cursor to display based on the current context, specifically: auto behaves as text over text, and default otherwise." The first part of this sentence is contradict to the second part.

The key word is "specifically". The second part is an explanation of how to do the first one, which means the UA is not allowed to change the cursor based on context in any way it wants, but only in one way.

It would be better to phrase it this way:
> "auto: behaves as text over text, and default otherwise.
> Note: Other context-based cursor changes are expected to be provided by the UA in the UA stylesheet. For example, for HTML, the UA stylesheet may contain `:any-link { cursor: pointer; }`."

---

> 2. when someone set "cursor: auto", should it be same behavior with not setting anything?

No. when a user sets `cursor: auto` it should do "text over text, and default otherwise", and only that. If someone wants "whatever the browser would do, including anything in the UA stylesheet, just as if I hadn't set anything", then that is achieved with `cursor: revert` (see https://drafts.csswg.org/css-cascade-4/#valdef-all-revert).

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

Received on Tuesday, 18 July 2017 03:24:11 UTC