mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-21 15:40:28 +00:00
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.
17 lines
425 B
HTML
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>	A</span><span>	AB</span><span>	ABC</span></div>
|