Skip to content

Decorations rendered incorrectly in scaled editor #139281

@somebee

Description

@somebee

Does this issue occur when all extensions are disabled?: Yes

When the editor element or a parent is transformed using css, the decorations, selections and caret is rendered incorrectly. This happens on every line that contains a foreign element (ie. a color preview thumbnail).
If the theme font is not considered to be monospaced the bug will affect all lines.

image

Steps to Reproduce:

  1. Go to vscode.dev
  2. Create a simple css file with the content body { color: red; }
  3. Scale the document document.body.style.transform = "scale(0.75)"
  4. Select the code and/or move caret around to see wrong positions and sizes

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buginsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions