Dynamically changing text content of element in foreignElement will lead to cutoff of text at its original bounding box
Categories
(Core :: Layout, defect)
Tracking
()
People
(Reporter: ulima.ums, Unassigned)
Details
Attachments
(1 file)
675 bytes,
text/html
|
Details |
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
Comment 1•3 years ago
|
||
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.
Updated•3 years ago
|
Description
•