Closed Bug 1711018 Opened 3 years ago Closed 3 years ago

Dynamically changing text content of element in foreignElement will lead to cutoff of text at its original bounding box

Categories

(Core :: Layout, defect)

Firefox 88
defect

Tracking

()

RESOLVED DUPLICATE of bug 1644680

People

(Reporter: ulima.ums, Unassigned)

Details

Attachments

(1 file)

Attached file Reproduction

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0

Steps to reproduce:

I updated the text of an element (a pre) in a foreignElement whose width and height is 1 (but overflow visible)

Actual results:

The text was cutoff at the old bounding box of the text

Expected results:

All text should be visible

// Info:
The Reproducable Example can also found here for easier fiddling: https://codepen.io/fuzzyma/pen/gOmPyEr

Depending on how you set the width and height of the foreignElement, you will see the text longer. Funny enough the text is correctly displayed on initial load. Only changing it dynamically triggers the bug

The Bugbug bot thinks this bug should belong to the 'Core::Layout' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Layout
Product: Firefox → Core
Status: UNCONFIRMED → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: