1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 09:34:57 +09:00
ladybird/Tests/LibWeb/Layout/expected/tab-size-text-wrap.txt
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

33 lines
2.1 KiB
Text

Viewport <#document> at (0,0) content-size 800x600 children: not-inline
BlockContainer <html> at (0,0) content-size 800x31 [BFC] children: not-inline
BlockContainer <body> at (8,8) content-size 784x15 children: not-inline
BlockContainer <div> at (8,8) content-size 100x15 children: inline
frag 0 from BlockContainer start: 0, length: 0, rect: [8,8 111.59375x15] baseline: 11.390625
frag 1 from BlockContainer start: 0, length: 0, rect: [119.59375,8 119.1875x15] baseline: 11.390625
frag 2 from BlockContainer start: 0, length: 0, rect: [238.78125,8 127.5625x15] baseline: 11.390625
BlockContainer <span> at (8,8) content-size 111.59375x15 inline-block [BFC] children: inline
frag 0 from TextNode start: 0, length: 2, rect: [8,8 111.59375x15] baseline: 11.390625
" A"
TextNode <#text>
BlockContainer <span> at (119.59375,8) content-size 119.1875x15 inline-block [BFC] children: inline
frag 0 from TextNode start: 0, length: 3, rect: [119.59375,8 119.1875x15] baseline: 11.390625
" AB"
TextNode <#text>
BlockContainer <span> at (238.78125,8) content-size 127.5625x15 inline-block [BFC] children: inline
frag 0 from TextNode start: 0, length: 4, rect: [238.78125,8 127.5625x15] baseline: 11.390625
" ABC"
TextNode <#text>
BlockContainer <(anonymous)> at (8,23) content-size 784x0 children: inline
TextNode <#text>
ViewportPaintable (Viewport<#document>) [0,0 800x600]
PaintableWithLines (BlockContainer<HTML>) [0,0 800x31]
PaintableWithLines (BlockContainer<BODY>) [8,8 784x15]
PaintableWithLines (BlockContainer<DIV>) [8,8 100x15] overflow: [8,8 358.34375x15]
PaintableWithLines (BlockContainer<SPAN>) [8,8 111.59375x15]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<SPAN>) [119.59375,8 119.1875x15]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<SPAN>) [238.78125,8 127.5625x15]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer(anonymous)) [8,23 784x0]