MicrosoftEdge / MicrosoftEdge/WebView2Feedback

Not able to render custom cursor

Open
#3,388 11 comments 0 reactions 1 assignee View on GitHub

@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

  1. 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.