Skip to content

The headless browser for AI agents and web scraping

Merge remote-tracking branch 'github/main' into integrate/pr-1188-main-20261004

SGavrl05b444e77900
diff --cc crates/obscura-render/src/dom.rs
index 3d477d63,6085822e..b504e1c9
--- a/crates/obscura-render/src/dom.rs
+++ b/crates/obscura-render/src/dom.rs
@@@ -13952,10 -14052,10 +14052,10 @@@ fn inline_wraps_only_in_flow_blocks
/// Recursively splice `display:contents`, decoration-free inline wrappers, and
/// inline wrappers whose only generated flow content is block-level into a
/// block container's effective child list. Descendants already carry inherited
-/// computed text styles, so removing these wrappers preserves shaping while
-/// exposing block-in-inline descendants early enough for anonymous block
-/// construction.
+/// computed text styles. Preserve wrappers the text engine can fold so their
+/// shaped runs retain element geometry; expose block-in-inline descendants
+/// early enough for anonymous block construction.
- fn flatten_boxless_inline_children(
+ pub(crate) fn flatten_boxless_inline_children(
tree: &DomTree,
children: &[NodeId],
styles: &HashMap<NodeId, crate::LayoutStyle>,