ladybird/Tests/LibWeb/Layout/input/tab-size-text-wrap.html
Callum Law 94f5a51820 LibWeb: Convert white-space CSS property to shorthand
This exposed a few bugs which caused the following tests to behave
incorrectly:
- `tab-size-text-wrap.html`: This previously relied on a bug where we
  incorrectly treated `white-space: pre` as allowing text wrapping. The
  fix here is to implement the text-wrap CSS shorthand property.

- `execCommand-preserveWhitespace.html`: We don't correctly serialize
  shorthand properties. This is covered by an existing FIXME in
  `CSSStyleProperties::serialized()`

- `white-space-shorthand.html`: The last 5 subtests here fail as we
  don't correctly handle shorthand properties in
  `CSSStyleProperties::remove_property()`. This is covered by an
  existing FIXME in said function.
2025-05-29 12:04:28 +02:00

17 lines
425 B
HTML

<!DOCTYPE html>
<style>
div {
white-space: pre;
font-family: monospace;
tab-size: 100px;
width: 100px;
/* FIXME: The layout here is incorrect until the text-wrap property is implemented. */
text-wrap: wrap;
background-color: khaki;
}
span {
display: inline-block;
}
</style>
<div><span>&#9;A</span><span>&#9;AB</span><span>&#9;ABC</span></div>