Skip to content

Initial cursor for contenteditable="true" divs are right aligned in firefox for Svelte 5 #13595

@zoaha

Description

@zoaha

Describe the bug

Super weird bug:
when using firefox + svelte 5, the cursor's initial position in contenteditable elements are right aligned, jumping back to left aligned whenever you type anything
image

no issue when using webkit browsers, also no issue if not in Svelte 5

Reproduction

https://svelte-5-preview.vercel.app/#H4sIAAAAAAAACmWQ4UrDMBSFXyUERydUWwVhxnYwfAzjjzS5a4NpEpLb6Sh9d9N1VkTIj5zzJYdz70iP2kCk7G2kVvRAGT14T3OKZz-LeAKDkHR0Q5CzU0UZtMc9txyLwgCSiEHbltTkJqJA2GbZ7ctM_7AsS15V_H62ldInIo2IseZUWz_gIYDglEhnEdJRGkVjIFEMAyTQaKsYwhe-Li_qcYmf9j-XqkihS3rEs4FLy_s1nIyz5tgI-dEGN1h1J51xgZEumm2Zk3KTk91us_Tn-B8-r-xTK-wYeSyhvzod6LZDRp5WxwulUi1GHq7WdNnBtVnaau-UPmpQlM0jTu_TN7sJvPyQAQAA

can copy that^ exact code into https://svelte.dev/repl/ and no issue

Logs

No response

System Info

win11, win10, firefox

Severity

annoyance

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