Files
ladybird/Tests/LibWeb/Text/expected/Editing/execCommand-forwardDelete.txt
Jelle Raaijmakers b9da7baac4 LibWeb: Extend logic for extraneous line breaks in block elements
While editing, we need to consider whether removing a <br> has any
effect on layout to determine whether its extraneous. This new condition
finds most cases for extraneous <br>s inside block elements.
2025-09-16 06:57:30 -04:00

28 lines
525 B
Plaintext
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
--- a ---
Before: foobar
After: fooar
--- b ---
Before: a&nbsp;&nbsp;&nbsp;
After: a&nbsp;&nbsp;
--- c ---
Before: a&nbsp;&nbsp;b
After: a b
--- d ---
Before: a&nbsp;&nbsp;&nbsp;b
After: a&nbsp; b
--- e ---
Before: a&nbsp;&nbsp;&nbsp;&nbsp;b
After: a&nbsp; &nbsp;b
--- f ---
Before: a&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;b
After: a&nbsp; &nbsp; b
--- g ---
Before: &nbsp;&nbsp;b
After: &nbsp;b
--- h ---
Before: foo👩🏼👨🏻bar
After: foobar
--- i ---
Before: foo<div>bar<br>baz</div>
After: foobar<div>baz</div>