forked from LadybirdBrowser/ladybird
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibWeb: Do not consider
<foreignObject>
for inline continuation
We used to have an exception for this element that erroneously got removed in 336684b.
- Loading branch information
Showing
3 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
Tests/LibWeb/Layout/expected/svg/svg-foreign-object-with-block-element.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline | ||
BlockContainer <html> at (0,0) content-size 800x116 [BFC] children: not-inline | ||
BlockContainer <body> at (8,8) content-size 784x100 children: inline | ||
frag 0 from SVGSVGBox start: 0, length: 0, rect: [8,8 100x100] baseline: 100 | ||
SVGSVGBox <svg> at (8,8) content-size 100x100 [SVG] children: inline | ||
SVGForeignObjectBox <foreignObject> at (8,8) content-size 0x0 children: not-inline | ||
BlockContainer <div> at (8,8) content-size 100x17 children: inline | ||
frag 0 from TextNode start: 0, length: 3, rect: [8,8 27.15625x17] baseline: 13.296875 | ||
"foo" | ||
TextNode <#text> | ||
|
||
ViewportPaintable (Viewport<#document>) [0,0 800x600] | ||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x116] | ||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x100] | ||
SVGSVGPaintable (SVGSVGBox<svg>) [8,8 100x100] | ||
SVGForeignObjectPaintable (SVGForeignObjectBox<foreignObject>) [8,8 0x0] overflow: [8,8 100x17] | ||
PaintableWithLines (BlockContainer<DIV>) [8,8 100x17] | ||
TextPaintable (TextNode<#text>) |
2 changes: 2 additions & 0 deletions
2
Tests/LibWeb/Layout/input/svg/svg-foreign-object-with-block-element.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<!DOCTYPE html> | ||
<svg width="100" height="100"><foreignObject width="100" height="100"><div>foo |