W3C home > Mailing lists > Public > www-style@w3.org > August 2015

[css-ui] cursor property's behavior when elements overlap is ambiguous

From: Chris Rebert <csswg@rebertia.com>
Date: Mon, 3 Aug 2015 10:49:31 -0700
Message-ID: <CAMZYqRQDLG4zmcNXbqEEowh9xOuS9hH5EByqToNrGR0+LGH6mg@mail.gmail.com>
To: www-style@w3.org
Regarding the `cursor` property, the spec currently says:
"This property specifies the type of cursor to be displayed for the
pointing device when within the element’s border edge."

However, neither the definition of "border edge" nor the rest of the
`cursor` section in the spec seem to provide any clarity on how to
handle situations where multiple elements with `cursor` properties
overlap with each other.

I think it's pretty obvious that the desired behavior is that the
element which is highest on the z-axis should be the one whose cursor
is displayed when elements overlap. Fortunately, all the major
browsers seem to already implement this behavior. So I suggest that
the spec be updated accordingly to resolve this ambiguity.

(Hat tip to Florian for noticing this in
https://github.com/w3c/csswg-test/pull/800 )

Cheers,
Chris
--
Bootstrap Core Team member
Browser 🐛s galore: http://getbootstrap.com/browser-bugs/
Received on Monday, 3 August 2015 17:49:59 UTC

This archive was generated by hypermail 2.3.1 : Monday, 3 August 2015 17:50:00 UTC