Phenomenon
When a contenteditable region is inside a table cell (<td>), editing the content may cause layout issues in Firefox. The table may resize unexpectedly or the cell may overflow.
Reproduction example
- Create a table with a contenteditable cell:
<table> <tr> <td contenteditable>Editable content</td> </tr> </table> - Edit the content in the cell (add or remove text).
- Observe the table layout.
Observed behavior
- In Firefox on Windows, editing content in table cells may cause layout issues.
- The table may resize unexpectedly.
- Cells may overflow or change size.
- The layout may become unstable.
Expected behavior
- Editing content in table cells should not cause layout issues.
- The table should maintain its structure.
- Cell sizes should remain stable during editing.