Skip to content

Selection glitch in Safari 26 #1627

@hubgit

Description

@hubgit

Describe the issue

In some situations, when dragging selections in Safari 26, remnants of the previous selections remain visible.

codemirror-selection-safari.mov

The issue appears in Safari v26.0.1, and Safari Technology Preview Release 229, but not in Safari v18.6, or in Chrome or Firefox.

The previous selection elements are no longer present in the selection layer.

In the linked demo, I see the issue when the editor has 1000 lines, but not when it has 100 lines.

This feels like a Safari bug, so feel free to close this issue if it can't be worked around, but any clues as to what might be going wrong would be useful for reporting upstream.

Browser and platform

Safari 26, macOS 15

Reproduction link

https://codemirror.net/try/#c=aW1wb3J0IHtFZGl0b3JWaWV3LCBkcmF3U2VsZWN0aW9ufSBmcm9tICJAY29kZW1pcnJvci92aWV3IgoKbmV3IEVkaXRvclZpZXcoewogIGRvYzogImNvbnNvbGUubG9nKCdoZWxsbycpXG4iLnJlcGVhdCgxMDAwKSwKICBleHRlbnNpb25zOiBbZHJhd1NlbGVjdGlvbigpXSwKICBwYXJlbnQ6IGRvY3VtZW50LmJvZHkKfSkK

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions