Page MenuHomeFeedback Tracker

CT_WEBBROWSER does not respect css attribute cursor
New, NormalPublic

Description

In the newly added (2.20) CT_WEBBROWSER control, the css attribute cursor is not respected.
According to the css spec, the property should set the mouse cursor appearance when the mouse is hovering over the element.

For example, this should show a "mouse hand" when a cursor is over a button:

button {
  cursor: pointer;
}

The values that I expect would be most important is pointer, to indicate a clickable element. Others that can be useful are crosshair, wait, not-allowed, grab...etc.

Additionally, it would be even better if the full css spec is implemented and we can use the url syntax. For example:

cursor: url(customCursor.png) 0 0, pointer;

But given that the web browser control is sandboxed, that might not be possible and this is a less important part of the ask.

Right now, with the ctrlMapCursor script command, we can set the cursor appearance (only for the map).

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 11 x64
Category
Scripting
Steps To Reproduce
  1. Create a CT_WEBBROWSER control.
  2. Load up an html file with a cursor css attribute.
  3. Mouse cursor does not change when hovering over element with said attribute.

Event Timeline

spooker0 created this task.Thu, Jul 10, 9:55 PM