MicrosoftEdge / MicrosoftEdge/WebView2Feedback
Not able to render custom cursor
Open
@david-risney is already working on this.
Since Apr 13, 2023.
bug
- Dominant language
- PowerShell
- Stars
- 526
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
Description
If we try to use a custom cursor inside a UWP app, we get a default cursor instead of a specified cursor. It does not even render the fallback cursor.
Version
SDK: 1.0.1661.34
Framework: UWP & WinUI3
OS: Win11
Repro Steps
- Load local index.html with the following content in a UWP app inside WebView2
<!DOCTYPE html>
<html lang="en">
<head>
<style>
html, body {
width: 100%;
height: 100%;
}
#root {
width: 100%;
height: 100%;
background: aqua;
cursor: url("circle.ico"), crosshair;
}
</style>
</head>
<body>
<div id="root"></div>
</html>
Expected Output
Cursor is rendered as circle.ico or crosshair
Actual Output
Default cursor is rendered
Additional context
If we use cursor: crosshair; instead, the crosshair is rendered
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.