Skip to content

Truly independent web browser

LibWeb: Wrap an inline-level abspos box with the floats before it

sideshowbarker408880490e7f
diff --git a/Libraries/LibWeb/Rust/src/layout/tree_plan/child_list.rs b/Libraries/LibWeb/Rust/src/layout/tree_plan/child_list.rs
index 99ee68699f6..367b4f0e2c6 100644
--- a/Libraries/LibWeb/Rust/src/layout/tree_plan/child_list.rs
+++ b/Libraries/LibWeb/Rust/src/layout/tree_plan/child_list.rs
@@ -425,6 +425,12 @@ impl PlanTree {
ChildPosition::Prepend => self.node(insertion_point).first_child(),
};
self.attach(insertion_point, node, before);
+ if is_inline_outside {
+ // NB: An absolutely positioned box that would be inline-level in flow is blockified, so attaching it
+ // doesn't count it as an inline-level child. It is one all the same: a block-level sibling that
+ // follows has to wrap it in an anonymous block, where a line gives it its static position.
+ *self.facts_mut(insertion_point) |= box_fact::HAS_INLINE_OR_IN_FLOW_CHILDREN;
+ }
let point_box = self.node(insertion_point);
let children_are_inline = if is_inline_outside {
@@ -833,6 +839,30 @@ mod tests {
assert!(tree.node(wrapper).has_flag(NodeFlag::ChildrenAreInline));
}
+ #[test]
+ fn block_after_inline_level_absolutely_positioned_box_wraps_it_with_the_floats_before_it() {
+ let mut tree = PlanTree::default();
+ let parent = root(&mut tree, NodeKind::BlockContainer, block());
+ let float = element(&mut tree, NodeKind::BlockContainer, out_of_flow(block()));
+ assert_eq!(append(&mut tree, parent, float), parent);
+ let abspos = element(
+ &mut tree,
+ NodeKind::BlockContainer,
+ block() | box_fact::ABSOLUTELY_POSITIONED | box_fact::INLINE_OUTSIDE_BEFORE_BLOCKIFICATION,
+ );
+ assert_eq!(append(&mut tree, parent, abspos), parent);
+ assert!(tree.node(parent).has_flag(NodeFlag::ChildrenAreInline));
+ let child = element(&mut tree, NodeKind::BlockContainer, block());
+ assert_eq!(append(&mut tree, parent, child), parent);
+ let parent_children = children(&tree, parent);
+ assert_eq!(parent_children.len(), 2);
+ assert!(is_wrapper(&tree, parent_children[0]));
+ assert!(tree.node(parent_children[0]).has_flag(NodeFlag::ChildrenAreInline));
+ assert_eq!(children(&tree, parent_children[0]), [float, abspos]);
+ assert_eq!(parent_children[1], child);
+ assert!(!tree.node(parent).has_flag(NodeFlag::ChildrenAreInline));
+ }
+
#[test]
fn out_of_flow_table_internal_child_of_a_table_stays_out_of_the_wrapper() {
let mut tree = PlanTree::default();
diff --git a/Tests/LibWeb/Layout/expected/pdf-viewer.txt b/Tests/LibWeb/Layout/expected/pdf-viewer.txt
index ea3facf639d..d14a907b868 100644
--- a/Tests/LibWeb/Layout/expected/pdf-viewer.txt
+++ b/Tests/LibWeb/Layout/expected/pdf-viewer.txt
@@ -2,210 +2,211 @@ Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children
BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] children: not-inline
BlockContainer <div#outerContainer> at [0,0] positioned [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] children: not-inline
- BlockContainer <span#viewer-alert.visuallyHidden> at [0,0] positioned [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inline
- Box <div#mainContainer> at [0,0] positioned flex-container(column) [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [FFC] children: not-inline
- BlockContainer <div.toolbar> at [0,0] flex-item [0+0+0 800 0+0+0] [0+0+0 32 0+0+0] [BFC] children: not-inline
- BlockContainer <div#toolbarContainer> at [1,2] positioned [0+0+1 798 1+0+0] [0+0+2 28 2+0+0] children: inline
- frag 0 from Box start: 0, length: 0, rect: [1,2 798x28] baseline: 22
- Box <div#toolbarViewer.toolbarHorizontalGroup> at [1,2] flex-container(row) [0+0+0 798 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
- Box <div#toolbarViewerLeft.toolbarHorizontalGroup> at [9,2] flex-container(row) flex-item [8+0+0 240.359375 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
- Box <button#viewsManagerToggleButton.toolbarButton> at [9,2] positioned flex-container(row) flex-item [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
- BlockContainer <(anonymous)> at [15,8] flex-item [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
- BlockContainer <span> at [31,16] flex-item [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline overflow: [31,16 45.78125x26]
- frag 0 from TextNode start: 0, length: 6, rect: [31,16 45.78125x13] baseline: 10
- "Manage"
- frag 1 from TextNode start: 7, length: 5, rect: [31,29 36.0625x13] baseline: 10
- "pages"
- TextNode <#text> (not painted)
- BlockContainer <div.toolbarButtonSpacer> at [38,15.5] flex-item [0+0+0 30 0+0+0] [0+0+0 1 0+0+0] [BFC] children: not-inline
- BlockContainer <div.toolbarButtonWithContainer> at [69,2] positioned flex-item [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [BFC] children: not-inline
- Box <button#viewFindButton.toolbarButton> at [69,2] positioned flex-container(row) [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
- BlockContainer <(anonymous)> at [75,8] flex-item [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
- BlockContainer <span> at [91,16] flex-item [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline overflow: [91,16 28.09375x13]
- frag 0 from TextNode start: 0, length: 4, rect: [91,16 28.09375x13] baseline: 10
- "Find"
- TextNode <#text> (not painted)
- Box <div.toolbarHorizontalGroup.hiddenSmallView> at [98,2] flex-container(row) flex-item [0+0+0 59 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
- Box <button#previous.toolbarButton> at [98,2] positioned flex-container(row) flex-item [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
- BlockContainer <(anonymous)> at [104,8] flex-item [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
- BlockContainer <span> at [120,16] flex-item [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline overflow: [120,16 57.953125x13]
- frag 0 from TextNode start: 0, length: 8, rect: [120,16 57.953125x13] baseline: 10
- "Previous"
- TextNode <#text> (not painted)
- BlockContainer <div.splitToolbarButtonSeparator> at [128,7.328125] flex-item [0+1+0 0 0+0+0] [0+0+0 17.359375 0+0+0] [BFC] children: not-inline
- Box <button#next.toolbarButton> at [129,2] positioned flex-container(row) flex-item [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
- BlockContainer <(anonymous)> at [135,8] flex-item [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
- BlockContainer <span> at [151,16] flex-item [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline overflow: [151,16 28.90625x13]
- frag 0 from TextNode start: 0, length: 4, rect: [151,16 28.90625x13] baseline: 10
- "Next"
- TextNode <#text> (not painted)
- Box <div.toolbarHorizontalGroup> at [158,2] flex-container(row) flex-item [0+0+0 91.359375 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
- Box <span.loadingInput.start.toolbarHorizontalGroup> at [158,2] positioned flex-container(row) flex-item [0+0+0 56 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
- TextInputBox <input#pageNumber.toolbarField> at [166,9.5] flex-item [0+1+7 40 7+1+0] [3+1+4 13 4+1+3] [BFC] children: not-inline
- Box <div> at [166,9.5] flex-container(row) [0+0+0 40 0+0+0] [0+0+0 13 0+0+0] [FFC] children: not-inline
- Box <div> at [166,9.5] flex-container(row) flex-item [0+0+0 40 0+0+0] [0+0+0 13 0+0+0] [FFC] children: not-inline
- BlockContainer <div> at [166,9.5] flex-item [0+0+0 40 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inline
- frag 0 from TextNode start: 0, length: 1, rect: [200.84375,9.5 5.15625x13] baseline: 10
- "1"
- TextNode <#text> (not painted)
- Box <div> at [206,9.5] flex-container(column) flex-item [0+0+0 0 0+0+0] [0+0+0 13 0+0+0] [FFC] children: not-inline
- Box <span#numPages.toolbarLabel> at [220,2] flex-container(column) flex-item [2+0+3 23.359375 4+0+2] [2+0+0 28 0+0+2] [FFC] children: not-inline
- BlockContainer <(anonymous)> at [220,9] flex-item [0+0+0 23.359375 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline
- frag 0 from TextNode start: 0, length: 6, rect: [220,10 23.359375x12] baseline: 10
- "of ⁨1⁩"
+ BlockContainer <(anonymous)> at [0,0] [0+0+0 800 0+0+0] [0+0+0 0 0+0+0] children: inline
+ BlockContainer <span#viewer-alert.visuallyHidden> at [0,0] positioned [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inline
+ Box <div#mainContainer> at [0,0] positioned flex-container(column) [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [FFC] children: not-inline
+ BlockContainer <div.toolbar> at [0,0] flex-item [0+0+0 800 0+0+0] [0+0+0 32 0+0+0] [BFC] children: not-inline
+ BlockContainer <div#toolbarContainer> at [1,2] positioned [0+0+1 798 1+0+0] [0+0+2 28 2+0+0] children: inline
+ frag 0 from Box start: 0, length: 0, rect: [1,2 798x28] baseline: 22
+ Box <div#toolbarViewer.toolbarHorizontalGroup> at [1,2] flex-container(row) [0+0+0 798 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
+ Box <div#toolbarViewerLeft.toolbarHorizontalGroup> at [9,2] flex-container(row) flex-item [8+0+0 240.359375 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
+ Box <button#viewsManagerToggleButton.toolbarButton> at [9,2] positioned flex-container(row) flex-item [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
+ BlockContainer <(anonymous)> at [15,8] flex-item [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
+ BlockContainer <span> at [31,16] flex-item [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline overflow: [31,16 45.78125x26]
+ frag 0 from TextNode start: 0, length: 6, rect: [31,16 45.78125x13] baseline: 10
+ "Manage"
+ frag 1 from TextNode start: 7, length: 5, rect: [31,29 36.0625x13] baseline: 10
+ "pages"
TextNode <#text> (not painted)
- Box <div#toolbarViewerMiddle.toolbarHorizontalGroup> at [313.9375,2] flex-container(row) flex-item [0+0+0 206.484375 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
- Box <div.toolbarHorizontalGroup> at [313.9375,2] flex-container(row) flex-item [0+0+0 59 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
- Box <button#zoomOutButton.toolbarButton> at [313.9375,2] positioned flex-container(row) flex-item [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
- BlockContainer <(anonymous)> at [319.9375,8] flex-item [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
- BlockContainer <span> at [335.9375,16] flex-item [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline overflow: [335.9375,16 37.015625x26]
- frag 0 from TextNode start: 0, length: 4, rect: [335.9375,16 37.015625x13] baseline: 10
- "Zoom"
- frag 1 from TextNode start: 5, length: 3, rect: [335.9375,29 22.84375x13] baseline: 10
- "Out"
- TextNode <#text> (not painted)
- BlockContainer <div.splitToolbarButtonSeparator> at [343.9375,7.328125] flex-item [0+1+0 0 0+0+0] [0+0+0 17.359375 0+0+0] [BFC] children: not-inline
- Box <button#zoomInButton.toolbarButton> at [344.9375,2] positioned flex-container(row) flex-item [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
- BlockContainer <(anonymous)> at [350.9375,8] flex-item [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
- BlockContainer <span> at [366.9375,16] flex-item [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline overflow: [366.9375,16 37.015625x26]
- frag 0 from TextNode start: 0, length: 4, rect: [366.9375,16 37.015625x13] baseline: 10
- "Zoom"
- frag 1 from TextNode start: 5, length: 2, rect: [366.9375,29 11.546875x13] baseline: 10
- "In"
- TextNode <#text> (not painted)
- Box <span#scaleSelectContainer.dropdownToolbarButton> at [373.9375,2] positioned flex-container(row) flex-item [0+0+0 146.484375 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
- BlockContainer <select#scaleSelect> at [379.9375,3] flex-item [0+0+6 102.484375 38+0+0] [0+0+1 25 2+0+0] [BFC] children: not-inline
- Box <div> at [379.9375,3] positioned flex-container(row) [0+0+0 102.484375 0+0+0] [0+0+0 25 0+0+0] [FFC] children: not-inline
- BlockContainer <div> at [379.9375,9.5] flex-item [0+0+0 102.484375 0+0+0] [0+0+0 12 0+0+0] [BFC] children: not-inline
- BlockContainer <div> at [379.9375,9.5] [0+0+0 102.484375 0+0+0] [0+0+0 12 0+0+0] children: inline
- frag 0 from TextNode start: 0, length: 14, rect: [379.9375,9.5 102.484375x12] baseline: 10
- "Automatic Zoom"
- TextNode <#text> (not painted)
- BlockContainer <div> at [379.9375,21.5] floating [0+0+0 102.484375 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inline
- BlockContainer <div> at [379.9375,21.5] [0+0+0 102.484375 0+0+0] [0+0+0 12 0+0+0] children: inline
- frag 0 from TextNode start: 0, length: 14, rect: [379.9375,21.5 102.484375x12] baseline: 10
+ BlockContainer <div.toolbarButtonSpacer> at [38,15.5] flex-item [0+0+0 30 0+0+0] [0+0+0 1 0+0+0] [BFC] children: not-inline
+ BlockContainer <div.toolbarButtonWithContainer> at [69,2] positioned flex-item [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [BFC] children: not-inline
+ Box <button#viewFindButton.toolbarButton> at [69,2] positioned flex-container(row) [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
+ BlockContainer <(anonymous)> at [75,8] flex-item [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
+ BlockContainer <span> at [91,16] flex-item [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline overflow: [91,16 28.09375x13]
+ frag 0 from TextNode start: 0, length: 4, rect: [91,16 28.09375x13] baseline: 10
+ "Find"
+ TextNode <#text> (not painted)
+ Box <div.toolbarHorizontalGroup.hiddenSmallView> at [98,2] flex-container(row) flex-item [0+0+0 59 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
+ Box <button#previous.toolbarButton> at [98,2] positioned flex-container(row) flex-item [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
+ BlockContainer <(anonymous)> at [104,8] flex-item [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
+ BlockContainer <span> at [120,16] flex-item [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline overflow: [120,16 57.953125x13]
+ frag 0 from TextNode start: 0, length: 8, rect: [120,16 57.953125x13] baseline: 10
+ "Previous"
+ TextNode <#text> (not painted)
+ BlockContainer <div.splitToolbarButtonSeparator> at [128,7.328125] flex-item [0+1+0 0 0+0+0] [0+0+0 17.359375 0+0+0] [BFC] children: not-inline
+ Box <button#next.toolbarButton> at [129,2] positioned flex-container(row) flex-item [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
+ BlockContainer <(anonymous)> at [135,8] flex-item [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
+ BlockContainer <span> at [151,16] flex-item [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline overflow: [151,16 28.90625x13]
+ frag 0 from TextNode start: 0, length: 4, rect: [151,16 28.90625x13] baseline: 10
+ "Next"
+ TextNode <#text> (not painted)
+ Box <div.toolbarHorizontalGroup> at [158,2] flex-container(row) flex-item [0+0+0 91.359375 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
+ Box <span.loadingInput.start.toolbarHorizontalGroup> at [158,2] positioned flex-container(row) flex-item [0+0+0 56 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
+ TextInputBox <input#pageNumber.toolbarField> at [166,9.5] flex-item [0+1+7 40 7+1+0] [3+1+4 13 4+1+3] [BFC] children: not-inline
+ Box <div> at [166,9.5] flex-container(row) [0+0+0 40 0+0+0] [0+0+0 13 0+0+0] [FFC] children: not-inline
+ Box <div> at [166,9.5] flex-container(row) flex-item [0+0+0 40 0+0+0] [0+0+0 13 0+0+0] [FFC] children: not-inline
+ BlockContainer <div> at [166,9.5] flex-item [0+0+0 40 0+0+0] [0+0+0 13 0+0+0] [BFC] children: inline
+ frag 0 from TextNode start: 0, length: 1, rect: [200.84375,9.5 5.15625x13] baseline: 10
+ "1"
+ TextNode <#text> (not painted)
+ Box <div> at [206,9.5] flex-container(column) flex-item [0+0+0 0 0+0+0] [0+0+0 13 0+0+0] [FFC] children: not-inline
+ Box <span#numPages.toolbarLabel> at [220,2] flex-container(column) flex-item [2+0+3 23.359375 4+0+2] [2+0+0 28 0+0+2] [FFC] children: not-inline
+ BlockContainer <(anonymous)> at [220,9] flex-item [0+0+0 23.359375 0+0+0] [0+0+0 14 0+0+0] [BFC] children: inline
+ frag 0 from TextNode start: 0, length: 6, rect: [220,10 23.359375x12] baseline: 10
+ "of ⁨1⁩"
+ TextNode <#text> (not painted)
+ Box <div#toolbarViewerMiddle.toolbarHorizontalGroup> at [313.9375,2] flex-container(row) flex-item [0+0+0 206.484375 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
+ Box <div.toolbarHorizontalGroup> at [313.9375,2] flex-container(row) flex-item [0+0+0 59 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
+ Box <button#zoomOutButton.toolbarButton> at [313.9375,2] positioned flex-container(row) flex-item [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
+ BlockContainer <(anonymous)> at [319.9375,8] flex-item [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
+ BlockContainer <span> at [335.9375,16] flex-item [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline overflow: [335.9375,16 37.015625x26]
+ frag 0 from TextNode start: 0, length: 4, rect: [335.9375,16 37.015625x13] baseline: 10
+ "Zoom"
+ frag 1 from TextNode start: 5, length: 3, rect: [335.9375,29 22.84375x13] baseline: 10
+ "Out"
+ TextNode <#text> (not painted)
+ BlockContainer <div.splitToolbarButtonSeparator> at [343.9375,7.328125] flex-item [0+1+0 0 0+0+0] [0+0+0 17.359375 0+0+0] [BFC] children: not-inline
+ Box <button#zoomInButton.toolbarButton> at [344.9375,2] positioned flex-container(row) flex-item [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
+ BlockContainer <(anonymous)> at [350.9375,8] flex-item [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
+ BlockContainer <span> at [366.9375,16] flex-item [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline overflow: [366.9375,16 37.015625x26]
+ frag 0 from TextNode start: 0, length: 4, rect: [366.9375,16 37.015625x13] baseline: 10
+ "Zoom"
+ frag 1 from TextNode start: 5, length: 2, rect: [366.9375,29 11.546875x13] baseline: 10
+ "In"
+ TextNode <#text> (not painted)
+ Box <span#scaleSelectContainer.dropdownToolbarButton> at [373.9375,2] positioned flex-container(row) flex-item [0+0+0 146.484375 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
+ BlockContainer <select#scaleSelect> at [379.9375,3] flex-item [0+0+6 102.484375 38+0+0] [0+0+1 25 2+0+0] [BFC] children: not-inline
+ Box <div> at [379.9375,3] positioned flex-container(row) [0+0+0 102.484375 0+0+0] [0+0+0 25 0+0+0] [FFC] children: not-inline
+ BlockContainer <div> at [379.9375,9.5] flex-item [0+0+0 102.484375 0+0+0] [0+0+0 12 0+0+0] [BFC] children: not-inline
+ BlockContainer <div> at [379.9375,9.5] [0+0+0 102.484375 0+0+0] [0+0+0 12 0+0+0] children: inline
+ frag 0 from TextNode start: 0, length: 14, rect: [379.9375,9.5 102.484375x12] baseline: 10
"Automatic Zoom"
TextNode <#text> (not painted)
- BlockContainer <div> at [379.9375,33.5] [0+0+0 102.484375 0+0+0] [0+0+0 12 0+0+0] children: inline
- frag 0 from TextNode start: 0, length: 11, rect: [379.9375,33.5 71.28125x12] baseline: 10
- "Actual Size"
- TextNode <#text> (not painted)
- BlockContainer <div> at [379.9375,45.5] [0+0+0 102.484375 0+0+0] [0+0+0 12 0+0+0] children: inline
- frag 0 from TextNode start: 0, length: 8, rect: [379.9375,45.5 51.859375x12] baseline: 10
- "Page Fit"
- TextNode <#text> (not painted)
- BlockContainer <div> at [379.9375,57.5] [0+0+0 102.484375 0+0+0] [0+0+0 12 0+0+0] children: inline
- frag 0 from TextNode start: 0, length: 10, rect: [379.9375,57.5 64.984375x12] baseline: 10
- "Page Width"
- TextNode <#text> (not painted)
- BlockContainer <div> at [379.9375,69.5] [0+0+0 102.484375 0+0+0] [0+0+0 12 0+0+0] children: inline
- frag 0 from TextNode start: 0, length: 4, rect: [379.9375,69.5 16.421875x12] baseline: 10
- "⁨0⁩%"
- TextNode <#text> (not painted)
- BlockContainer <div> at [379.9375,81.5] [0+0+0 102.484375 0+0+0] [0+0+0 12 0+0+0] children: inline
- frag 0 from TextNode start: 0, length: 5, rect: [379.9375,81.5 22.765625x12] baseline: 10
- "⁨50⁩%"
- TextNode <#text> (not painted)
- BlockContainer <div> at [379.9375,93.5] [0+0+0 102.484375 0+0+0] [0+0+0 12 0+0+0] children: inline
- frag 0 from TextNode start: 0, length: 5, rect: [379.9375,93.5 22.109375x12] baseline: 10
- "⁨75⁩%"
- TextNode <#text> (not painted)
- BlockContainer <div> at [379.9375,105.5] [0+0+0 102.484375 0+0+0] [0+0+0 12 0+0+0] children: inline
- frag 0 from TextNode start: 0, length: 6, rect: [379.9375,105.5 28.390625x12] baseline: 10
- "⁨100⁩%"
- TextNode <#text> (not painted)
- BlockContainer <div> at [379.9375,117.5] [0+0+0 102.484375 0+0+0] [0+0+0 12 0+0+0] children: inline
- frag 0 from TextNode start: 0, length: 6, rect: [379.9375,117.5 26.9375x12] baseline: 10
- "⁨125⁩%"
- TextNode <#text> (not painted)
- BlockContainer <div> at [379.9375,129.5] [0+0+0 102.484375 0+0+0] [0+0+0 12 0+0+0] children: inline
- frag 0 from TextNode start: 0, length: 6, rect: [379.9375,129.5 27.53125x12] baseline: 10
- "⁨150⁩%"
- TextNode <#text> (not painted)
- BlockContainer <div> at [379.9375,141.5] [0+0+0 102.484375 0+0+0] [0+0+0 12 0+0+0] children: inline
- frag 0 from TextNode start: 0, length: 6, rect: [379.9375,141.5 30.234375x12] baseline: 10
- "⁨200⁩%"
- TextNode <#text> (not painted)
- BlockContainer <div> at [379.9375,153.5] [0+0+0 102.484375 0+0+0] [0+0+0 12 0+0+0] children: inline
- frag 0 from TextNode start: 0, length: 6, rect: [379.9375,153.5 30.453125x12] baseline: 10
- "⁨300⁩%"
- TextNode <#text> (not painted)
- BlockContainer <div> at [379.9375,165.5] [0+0+0 102.484375 0+0+0] [0+0+0 12 0+0+0] children: inline
- frag 0 from TextNode start: 0, length: 6, rect: [379.9375,165.5 29.4375x12] baseline: 10
- "⁨400⁩%"
- TextNode <#text> (not painted)
- BlockContainer <(anonymous)> at [500.421875,8] positioned [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
- Box <div#toolbarViewerRight.toolbarHorizontalGroup> at [585,2] flex-container(row) flex-item [0+0+0 214 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
- Box <div#editorModeButtons.toolbarHorizontalGroup> at [585,2] flex-container(row) flex-item [0+0+0 115 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
- BlockContainer <div#editorHighlight.toolbarButtonWithContainer> at [585,2] positioned flex-item [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [BFC] children: not-inline
- Box <button#editorHighlightButton.toolbarButton> at [585,2] positioned flex-container(row) [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
- BlockContainer <(anonymous)> at [591,8] flex-item [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
- BlockContainer <span> at [607,16] flex-item [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline overflow: [607,16 53.734375x13]
- frag 0 from TextNode start: 0, length: 9, rect: [607,16 53.734375x13] baseline: 10
- "Highlight"
- TextNode <#text> (not painted)
- BlockContainer <div#editorFreeText.toolbarButtonWithContainer> at [614,2] positioned flex-item [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [BFC] children: not-inline
- Box <button#editorFreeTextButton.toolbarButton> at [614,2] positioned flex-container(row) [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
- BlockContainer <(anonymous)> at [620,8] flex-item [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
- BlockContainer <span> at [636,16] flex-item [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline overflow: [636,16 30.53125x13]
- frag 0 from TextNode start: 0, length: 4, rect: [636,16 30.53125x13] baseline: 10
- "Text"
+ BlockContainer <div> at [379.9375,21.5] floating [0+0+0 102.484375 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inline
+ BlockContainer <div> at [379.9375,21.5] [0+0+0 102.484375 0+0+0] [0+0+0 12 0+0+0] children: inline
+ frag 0 from TextNode start: 0, length: 14, rect: [379.9375,21.5 102.484375x12] baseline: 10
+ "Automatic Zoom"
+ TextNode <#text> (not painted)
+ BlockContainer <div> at [379.9375,33.5] [0+0+0 102.484375 0+0+0] [0+0+0 12 0+0+0] children: inline
+ frag 0 from TextNode start: 0, length: 11, rect: [379.9375,33.5 71.28125x12] baseline: 10
+ "Actual Size"
+ TextNode <#text> (not painted)
+ BlockContainer <div> at [379.9375,45.5] [0+0+0 102.484375 0+0+0] [0+0+0 12 0+0+0] children: inline
+ frag 0 from TextNode start: 0, length: 8, rect: [379.9375,45.5 51.859375x12] baseline: 10
+ "Page Fit"
+ TextNode <#text> (not painted)
+ BlockContainer <div> at [379.9375,57.5] [0+0+0 102.484375 0+0+0] [0+0+0 12 0+0+0] children: inline
+ frag 0 from TextNode start: 0, length: 10, rect: [379.9375,57.5 64.984375x12] baseline: 10
+ "Page Width"
+ TextNode <#text> (not painted)
+ BlockContainer <div> at [379.9375,69.5] [0+0+0 102.484375 0+0+0] [0+0+0 12 0+0+0] children: inline
+ frag 0 from TextNode start: 0, length: 4, rect: [379.9375,69.5 16.421875x12] baseline: 10
+ "⁨0⁩%"
+ TextNode <#text> (not painted)
+ BlockContainer <div> at [379.9375,81.5] [0+0+0 102.484375 0+0+0] [0+0+0 12 0+0+0] children: inline
+ frag 0 from TextNode start: 0, length: 5, rect: [379.9375,81.5 22.765625x12] baseline: 10
+ "⁨50⁩%"
+ TextNode <#text> (not painted)
+ BlockContainer <div> at [379.9375,93.5] [0+0+0 102.484375 0+0+0] [0+0+0 12 0+0+0] children: inline
+ frag 0 from TextNode start: 0, length: 5, rect: [379.9375,93.5 22.109375x12] baseline: 10
+ "⁨75⁩%"
+ TextNode <#text> (not painted)
+ BlockContainer <div> at [379.9375,105.5] [0+0+0 102.484375 0+0+0] [0+0+0 12 0+0+0] children: inline
+ frag 0 from TextNode start: 0, length: 6, rect: [379.9375,105.5 28.390625x12] baseline: 10
+ "⁨100⁩%"
+ TextNode <#text> (not painted)
+ BlockContainer <div> at [379.9375,117.5] [0+0+0 102.484375 0+0+0] [0+0+0 12 0+0+0] children: inline
+ frag 0 from TextNode start: 0, length: 6, rect: [379.9375,117.5 26.9375x12] baseline: 10
+ "⁨125⁩%"
+ TextNode <#text> (not painted)
+ BlockContainer <div> at [379.9375,129.5] [0+0+0 102.484375 0+0+0] [0+0+0 12 0+0+0] children: inline
+ frag 0 from TextNode start: 0, length: 6, rect: [379.9375,129.5 27.53125x12] baseline: 10
+ "⁨150⁩%"
+ TextNode <#text> (not painted)
+ BlockContainer <div> at [379.9375,141.5] [0+0+0 102.484375 0+0+0] [0+0+0 12 0+0+0] children: inline
+ frag 0 from TextNode start: 0, length: 6, rect: [379.9375,141.5 30.234375x12] baseline: 10
+ "⁨200⁩%"
+ TextNode <#text> (not painted)
+ BlockContainer <div> at [379.9375,153.5] [0+0+0 102.484375 0+0+0] [0+0+0 12 0+0+0] children: inline
+ frag 0 from TextNode start: 0, length: 6, rect: [379.9375,153.5 30.453125x12] baseline: 10
+ "⁨300⁩%"
+ TextNode <#text> (not painted)
+ BlockContainer <div> at [379.9375,165.5] [0+0+0 102.484375 0+0+0] [0+0+0 12 0+0+0] children: inline
+ frag 0 from TextNode start: 0, length: 6, rect: [379.9375,165.5 29.4375x12] baseline: 10
+ "⁨400⁩%"
+ TextNode <#text> (not painted)
+ BlockContainer <(anonymous)> at [500.421875,8] positioned [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
+ Box <div#toolbarViewerRight.toolbarHorizontalGroup> at [585,2] flex-container(row) flex-item [0+0+0 214 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
+ Box <div#editorModeButtons.toolbarHorizontalGroup> at [585,2] flex-container(row) flex-item [0+0+0 115 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
+ BlockContainer <div#editorHighlight.toolbarButtonWithContainer> at [585,2] positioned flex-item [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [BFC] children: not-inline
+ Box <button#editorHighlightButton.toolbarButton> at [585,2] positioned flex-container(row) [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
+ BlockContainer <(anonymous)> at [591,8] flex-item [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
+ BlockContainer <span> at [607,16] flex-item [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline overflow: [607,16 53.734375x13]
+ frag 0 from TextNode start: 0, length: 9, rect: [607,16 53.734375x13] baseline: 10
+ "Highlight"
+ TextNode <#text> (not painted)
+ BlockContainer <div#editorFreeText.toolbarButtonWithContainer> at [614,2] positioned flex-item [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [BFC] children: not-inline
+ Box <button#editorFreeTextButton.toolbarButton> at [614,2] positioned flex-container(row) [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
+ BlockContainer <(anonymous)> at [620,8] flex-item [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
+ BlockContainer <span> at [636,16] flex-item [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline overflow: [636,16 30.53125x13]
+ frag 0 from TextNode start: 0, length: 4, rect: [636,16 30.53125x13] baseline: 10
+ "Text"
+ TextNode <#text> (not painted)
+ BlockContainer <div#editorInk.toolbarButtonWithContainer> at [643,2] positioned flex-item [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [BFC] children: not-inline
+ Box <button#editorInkButton.toolbarButton> at [643,2] positioned flex-container(row) [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
+ BlockContainer <(anonymous)> at [649,8] flex-item [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
+ BlockContainer <span> at [665,16] flex-item [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline overflow: [665,16 32.921875x13]
+ frag 0 from TextNode start: 0, length: 4, rect: [665,16 32.921875x13] baseline: 10
+ "Draw"
+ TextNode <#text> (not painted)
+ BlockContainer <div#editorStamp.toolbarButtonWithContainer> at [672,2] positioned flex-item [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [BFC] children: not-inline
+ Box <button#editorStampButton.toolbarButton> at [672,2] positioned flex-container(row) [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
+ BlockContainer <(anonymous)> at [678,8] flex-item [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
+ BlockContainer <span> at [694,16] flex-item [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline overflow: [694,16 42.03125x52]
+ frag 0 from TextNode start: 0, length: 3, rect: [694,16 24.375x13] baseline: 10
+ "Add"
+ frag 1 from TextNode start: 4, length: 2, rect: [694,29 15.59375x13] baseline: 10
+ "or"
+ frag 2 from TextNode start: 7, length: 4, rect: [694,42 22.75x13] baseline: 10
+ "edit"
+ frag 3 from TextNode start: 12, length: 6, rect: [694,55 42.03125x13] baseline: 10
+ "images"
+ TextNode <#text> (not painted)
+ BlockContainer <div#editorModeSeparator.verticalToolbarSeparator> at [704,4.8125] flex-item [2+1+0 0 0+0+2] [0+0+0 22.390625 0+0+0] [BFC] children: not-inline
+ Box <div.toolbarHorizontalGroup.hiddenMediumView> at [707,2] flex-container(row) flex-item [0+0+0 57 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
+ Box <button#printButton.toolbarButton> at [707,2] positioned flex-container(row) flex-item [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
+ BlockContainer <(anonymous)> at [713,8] flex-item [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
+ BlockContainer <span> at [729,16] flex-item [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline overflow: [729,16 33.640625x13]
+ frag 0 from TextNode start: 0, length: 5, rect: [729,16 33.640625x13] baseline: 10
+ "Print"
TextNode <#text> (not painted)
- BlockContainer <div#editorInk.toolbarButtonWithContainer> at [643,2] positioned flex-item [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [BFC] children: not-inline
- Box <button#editorInkButton.toolbarButton> at [643,2] positioned flex-container(row) [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
- BlockContainer <(anonymous)> at [649,8] flex-item [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
- BlockContainer <span> at [665,16] flex-item [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline overflow: [665,16 32.921875x13]
- frag 0 from TextNode start: 0, length: 4, rect: [665,16 32.921875x13] baseline: 10
- "Draw"
+ Box <button#downloadButton.toolbarButton> at [736,2] positioned flex-container(row) flex-item [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
+ BlockContainer <(anonymous)> at [742,8] flex-item [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
+ BlockContainer <span> at [758,16] flex-item [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline overflow: [758,16 31.0625x13]
+ frag 0 from TextNode start: 0, length: 4, rect: [758,16 31.0625x13] baseline: 10
+ "Save"
TextNode <#text> (not painted)
- BlockContainer <div#editorStamp.toolbarButtonWithContainer> at [672,2] positioned flex-item [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [BFC] children: not-inline
- Box <button#editorStampButton.toolbarButton> at [672,2] positioned flex-container(row) [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
- BlockContainer <(anonymous)> at [678,8] flex-item [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
- BlockContainer <span> at [694,16] flex-item [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline overflow: [694,16 42.03125x52]
- frag 0 from TextNode start: 0, length: 3, rect: [694,16 24.375x13] baseline: 10
- "Add"
- frag 1 from TextNode start: 4, length: 2, rect: [694,29 15.59375x13] baseline: 10
- "or"
- frag 2 from TextNode start: 7, length: 4, rect: [694,42 22.75x13] baseline: 10
- "edit"
- frag 3 from TextNode start: 12, length: 6, rect: [694,55 42.03125x13] baseline: 10
- "images"
+ BlockContainer <div.verticalToolbarSeparator.hiddenMediumView> at [768,4.8125] flex-item [2+1+0 0 0+0+2] [0+0+0 22.390625 0+0+0] [BFC] children: not-inline
+ BlockContainer <div#secondaryToolbarToggle.toolbarButtonWithContainer> at [771,2] positioned flex-item [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [BFC] children: not-inline
+ Box <button#secondaryToolbarToggleButton.toolbarButton> at [771,2] positioned flex-container(row) [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
+ BlockContainer <(anonymous)> at [777,8] flex-item [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
+ BlockContainer <span> at [793,16] flex-item [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline overflow: [793,16 37.859375x13]
+ frag 0 from TextNode start: 0, length: 5, rect: [793,16 37.859375x13] baseline: 10
+ "Tools"
TextNode <#text> (not painted)
- BlockContainer <div#editorModeSeparator.verticalToolbarSeparator> at [704,4.8125] flex-item [2+1+0 0 0+0+2] [0+0+0 22.390625 0+0+0] [BFC] children: not-inline
- Box <div.toolbarHorizontalGroup.hiddenMediumView> at [707,2] flex-container(row) flex-item [0+0+0 57 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
- Box <button#printButton.toolbarButton> at [707,2] positioned flex-container(row) flex-item [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
- BlockContainer <(anonymous)> at [713,8] flex-item [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
- BlockContainer <span> at [729,16] flex-item [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline overflow: [729,16 33.640625x13]
- frag 0 from TextNode start: 0, length: 5, rect: [729,16 33.640625x13] baseline: 10
- "Print"
- TextNode <#text> (not painted)
- Box <button#downloadButton.toolbarButton> at [736,2] positioned flex-container(row) flex-item [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
- BlockContainer <(anonymous)> at [742,8] flex-item [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
- BlockContainer <span> at [758,16] flex-item [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline overflow: [758,16 31.0625x13]
- frag 0 from TextNode start: 0, length: 4, rect: [758,16 31.0625x13] baseline: 10
- "Save"
- TextNode <#text> (not painted)
- BlockContainer <div.verticalToolbarSeparator.hiddenMediumView> at [768,4.8125] flex-item [2+1+0 0 0+0+2] [0+0+0 22.390625 0+0+0] [BFC] children: not-inline
- BlockContainer <div#secondaryToolbarToggle.toolbarButtonWithContainer> at [771,2] positioned flex-item [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [BFC] children: not-inline
- Box <button#secondaryToolbarToggleButton.toolbarButton> at [771,2] positioned flex-container(row) [0+0+0 28 0+0+0] [0+0+0 28 0+0+0] [FFC] children: not-inline
- BlockContainer <(anonymous)> at [777,8] flex-item [0+0+0 16 0+0+0] [0+0+0 16 0+0+0] [BFC] children: not-inline
- BlockContainer <span> at [793,16] flex-item [0+0+0 0 0+0+0] [0+0+0 0 0+0+0] [BFC] children: inline overflow: [793,16 37.859375x13]
- frag 0 from TextNode start: 0, length: 5, rect: [793,16 37.859375x13] baseline: 10
- "Tools"
- TextNode <#text> (not painted)
- TextNode <#text> (not painted)
- BlockContainer <div#viewerContainer> at [0,32] positioned [0+0+0 800 0+0+0] [0+0+0 568 0+0+0] [BFC] children: not-inline
- BlockContainer <div#viewer.pdfViewer> at [0,33] [0+0+0 800 0+0+0] [0+0+0 151 0+0+0] children: not-inline
- BlockContainer <div.page> at [233.5,42] positioned [224.5+9+0 333 0+9+224.5] [1+9+0 133 0+9+-8] children: not-inline
- BlockContainer <div.canvasWrapper> at [233.5,42] [0+0+0 333 0+0+0] [0+0+0 133 0+0+0] [BFC] children: not-inline
- CanvasBox <canvas> at [233.5,42] positioned [0+0+0 333 0+0+0] [0+0+0 133 0+0+0] children: not-inline
- BlockContainer <div.textLayer.selectionRendering> at [233.5,42] positioned [0+0+0 333 0+0+0] [0+0+0 133 0+0+0] [BFC] children: inline
- BlockContainer <span> at [316.75,64.9375] positioned [0+0+0 121.046875 0+0+0] [0+0+0 23.328125 0+0+0] [BFC] children: inline
- frag 0 from TextNode start: 0, length: 9, rect: [316.75,63.9375 121.046875x24] baseline: 19
- "Hello PDF"
- TextNode <#text> (not painted)
- BlockContainer <div.endOfContent> at [233.5,175] positioned [0+0+0 333 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inline
- BlockContainer <div.annotationLayer> at [233.5,42] positioned [0+0+0 333 0+0+0] [0+0+0 133 0+0+0] [BFC] children: not-inline
+ TextNode <#text> (not painted)
+ BlockContainer <div#viewerContainer> at [0,32] positioned [0+0+0 800 0+0+0] [0+0+0 568 0+0+0] [BFC] children: not-inline
+ BlockContainer <div#viewer.pdfViewer> at [0,33] [0+0+0 800 0+0+0] [0+0+0 151 0+0+0] children: not-inline
+ BlockContainer <div.page> at [233.5,42] positioned [224.5+9+0 333 0+9+224.5] [1+9+0 133 0+9+-8] children: not-inline
+ BlockContainer <div.canvasWrapper> at [233.5,42] [0+0+0 333 0+0+0] [0+0+0 133 0+0+0] [BFC] children: not-inline
+ CanvasBox <canvas> at [233.5,42] positioned [0+0+0 333 0+0+0] [0+0+0 133 0+0+0] children: not-inline
+ BlockContainer <div.textLayer.selectionRendering> at [233.5,42] positioned [0+0+0 333 0+0+0] [0+0+0 133 0+0+0] [BFC] children: inline
+ BlockContainer <span> at [316.75,64.9375] positioned [0+0+0 121.046875 0+0+0] [0+0+0 23.328125 0+0+0] [BFC] children: inline
+ frag 0 from TextNode start: 0, length: 9, rect: [316.75,63.9375 121.046875x24] baseline: 19
+ "Hello PDF"
+ TextNode <#text> (not painted)
+ BlockContainer <div.endOfContent> at [233.5,175] positioned [0+0+0 333 0+0+0] [0+0+0 0 0+0+0] [BFC] children: not-inline
+ BlockContainer <div.annotationLayer> at [233.5,42] positioned [0+0+0 333 0+0+0] [0+0+0 133 0+0+0] [BFC] children: not-inline
BlockContainer <div#dialogContainer> at [0,0] [0+0+0 800 0+0+0] [0+0+0 0 0+0+0] children: not-inline
SC for Viewport<#document> [0,0 800x600] (z-index: auto)
diff --git a/Tests/LibWeb/Text/expected/inline-level-abspos-static-position-beside-floats.txt b/Tests/LibWeb/Text/expected/inline-level-abspos-static-position-beside-floats.txt
new file mode 100644
index 00000000000..4dfa02dd660
--- /dev/null
+++ b/Tests/LibWeb/Text/expected/inline-level-abspos-static-position-beside-floats.txt
@@ -0,0 +1,28 @@
+nothing-after: 200,0
+clearing-block-after: 200,0
+plain-block-after: 200,0
+block-before-and-after: 200,10
+block-level-abspos: 0,0
+inline-block: 200,0
+inline-flex: 100,0
+fixed: 100,0
+right-float: 0,0
+rtl-right-float: 270,0
+rtl-left-float: 370,0
+text-align-center: 250,0
+text-align-center-between-floats: 200,0
+text-align-center-without-floats: 200,0
+text-align-right: 400,0
+text-align-end: 400,0
+floats-fill-the-line: 400,0
+floats-leave-less-than-the-box: 380,0
+wider-float-below: 100,0
+margins-before-and-after: 100,30
+float-in-sibling-before: 100,0
+in-nested-block: 100,0
+container-padding: 115,0
+own-margins: 107,3
+two-boxes: 100,0 100,0
+vertical: 370,100
+block-inserted-after: 200
+the tree matches a full rebuild: true
diff --git a/Tests/LibWeb/Text/input/inline-level-abspos-static-position-beside-floats.html b/Tests/LibWeb/Text/input/inline-level-abspos-static-position-beside-floats.html
new file mode 100644
index 00000000000..335bd292b43
--- /dev/null
+++ b/Tests/LibWeb/Text/input/inline-level-abspos-static-position-beside-floats.html
@@ -0,0 +1,59 @@
+<!DOCTYPE html>
+<script src="include.js"></script>
+<style>
+ body { margin: 0; }
+ .container { position: relative; display: flow-root; width: 400px; height: 100px; }
+ .left { float: left; width: 100px; height: 80px; }
+ .right { float: right; width: 100px; height: 80px; }
+ .abspos { position: absolute; width: 30px; height: 30px; }
+ .clear { clear: both; }
+</style>
+<div class="container" id="nothing-after"><div class="left"></div><div class="left"></div><span class="abspos"></span></div>
+<div class="container" id="clearing-block-after"><div class="left"></div><div class="left"></div><span class="abspos"></span><div class="clear"></div></div>
+<div class="container" id="plain-block-after"><div class="left"></div><div class="left"></div><span class="abspos"></span><div></div></div>
+<div class="container" id="block-before-and-after"><div style="height: 10px"></div><div class="left"></div><div class="left"></div><span class="abspos"></span><div></div></div>
+<div class="container" id="block-level-abspos"><div class="left"></div><div class="left"></div><div class="abspos"></div><div class="clear"></div></div>
+<div class="container" id="inline-block"><div class="left"></div><div class="left"></div><span class="abspos" style="display: inline-block"></span><div class="clear"></div></div>
+<div class="container" id="inline-flex"><div class="left"></div><span class="abspos" style="display: inline-flex"></span><div class="clear"></div></div>
+<div class="container" id="fixed" style="transform: translate(0)"><div class="left"></div><span class="abspos" style="position: fixed"></span><div class="clear"></div></div>
+<div class="container" id="right-float"><div class="right"></div><span class="abspos"></span><div class="clear"></div></div>
+<div class="container" id="rtl-right-float" style="direction: rtl"><div class="right"></div><span class="abspos"></span><div class="clear"></div></div>
+<div class="container" id="rtl-left-float" style="direction: rtl"><div class="left"></div><span class="abspos"></span><div class="clear"></div></div>
+<div class="container" id="text-align-center" style="text-align: center"><div class="left"></div><span class="abspos"></span><div class="clear"></div></div>
+<div class="container" id="text-align-center-between-floats" style="text-align: center"><div class="left"></div><div class="right"></div><span class="abspos"></span><div class="clear"></div></div>
+<div class="container" id="text-align-center-without-floats" style="text-align: center"><span class="abspos"></span><div class="clear"></div></div>
+<div class="container" id="text-align-right" style="text-align: right"><div class="left"></div><span class="abspos"></span><div class="clear"></div></div>
+<div class="container" id="text-align-end" style="text-align: end"><div class="left"></div><span class="abspos"></span><div class="clear"></div></div>
+<div class="container" id="floats-fill-the-line"><div class="left" style="width: 400px; height: 40px"></div><span class="abspos"></span><div class="clear"></div></div>
+<div class="container" id="floats-leave-less-than-the-box"><div class="left" style="width: 380px; height: 40px"></div><span class="abspos"></span><div class="clear"></div></div>
+<div class="container" id="wider-float-below"><div class="left" style="height: 20px"></div><div class="left" style="clear: left; width: 150px"></div><span class="abspos"></span><div class="clear"></div></div>
+<div class="container" id="margins-before-and-after"><div style="height: 10px; margin-bottom: 20px"></div><div class="left"></div><span class="abspos"></span><div class="clear" style="margin-top: 5px"></div></div>
+<div class="container" id="float-in-sibling-before"><div><div class="left"></div></div><span class="abspos"></span><div class="clear"></div></div>
+<div class="container" id="in-nested-block"><div class="left"></div><div><span class="abspos"></span><div></div></div></div>
+<div class="container" id="container-padding" style="padding-left: 15px"><div class="left"></div><span class="abspos"></span><div class="clear"></div></div>
+<div class="container" id="own-margins"><div class="left"></div><span class="abspos" style="margin-left: 7px; margin-top: 3px"></span><div class="clear"></div></div>
+<div class="container" id="two-boxes"><div class="left"></div><span class="abspos"></span><span class="abspos"></span><div class="clear"></div></div>
+<div class="container" id="vertical" style="writing-mode: vertical-rl"><div class="left" style="width: 80px; height: 100px"></div><span class="abspos"></span><div class="clear"></div></div>
+<script>
+ test(() => {
+ // An absolutely positioned box with no insets goes to its static position. For a box that would be inline-level
+ // in flow, that's where a line would put it: beside the floats, and where the text alignment says, whatever
+ // follows the box.
+ for (const container of document.querySelectorAll(".container")) {
+ const origin = container.getBoundingClientRect();
+ const positions = [...container.querySelectorAll(".abspos")].map(box => {
+ const rect = box.getBoundingClientRect();
+ return `${rect.left - origin.left},${rect.top - origin.top}`;
+ });
+ println(`${container.id}: ${positions.join(" ")}`);
+ }
+
+ // A block that comes in after the box is there wraps it, just as one that was there from the start does.
+ const container = document.getElementById("nothing-after");
+ container.append(document.createElement("div"));
+ const rect = container.querySelector(".abspos").getBoundingClientRect();
+ println(`block-inserted-after: ${rect.left - container.getBoundingClientRect().left}`);
+ if (window.internals)
+ println(`the tree matches a full rebuild: ${internals.compareLayoutTreeWithFullRebuild().matches}`);
+ });
+</script>