Skip to content

Commit 8eb7124

Browse files
committed
[css-ui-3] Use the hotspot and hit testing to pick which element determines the cursor
1 parent b5d81bc commit 8eb7124

2 files changed

Lines changed: 408 additions & 1608 deletions

File tree

css-ui/Overview.bs

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,10 +973,22 @@ then only the end ellipsis/string should be rendered.
973973
</tbody></table>
974974

975975
This property specifies the type of cursor to be displayed for the pointing device
976-
when within the element's <a>border edge</a>.
976+
when the cursor's hotspot is within the element's <a>border edge</a>.
977977

978978
Note: As per [[CSS3-BACKGROUND]], the <a>border edge</a> is affected by 'border-radius'.
979979

980+
In the case of overlapping elements,
981+
which element determines the type of cursor
982+
is based on hit testing:
983+
the element determining the cursor
984+
is the one that would receive a click
985+
initiated from this position.
986+
987+
Note: The specifics of hit testing
988+
are out of scope of this specification.
989+
Hit testing will hopefully be defined
990+
in a future revision of CSS or HTML.
991+
980992
User agents may ignore the cursor property over native user-agent controls such as scrollbars, resizers, or other native UI widgets e.g. those that may be used inside some user agent specific implementations of form elements.
981993

982994
Values have the following meanings:

0 commit comments

Comments
 (0)