Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust
Rust ai-agentsai-toolsbrowserbrowser-automationcloud-browserheadlessheadless-browserkitesurfplaywrightpuppeteerrustservoweb-crawlerweb-crawlingweb-scraperweb-scraping
fix(layout): adopt fork constraint fixes and isolated content probes
ldm0a1965aa9ae06
diff --git a/Cargo.lock b/Cargo.lockindex 756559e44..b17c5bffb 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -1337,7 +1337,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"dependencies = ["libc",- "windows-sys 0.61.2",+ "windows-sys 0.52.0",][[package]]@@ -3814,7 +3814,7 @@ version = "0.50.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"dependencies = [- "windows-sys 0.61.2",+ "windows-sys 0.59.0",][[package]]@@ -4876,7 +4876,7 @@ dependencies = ["errno 0.3.14","libc","linux-raw-sys 0.12.1",- "windows-sys 0.61.2",+ "windows-sys 0.52.0",][[package]]@@ -4998,7 +4998,7 @@ dependencies = [[[package]]name = "selectors"version = "0.41.0"-source = "git+https://github.com/lexmount/stylo?rev=2fce24a36f03223f9ad75672bf1d8b35e47fc285#2fce24a36f03223f9ad75672bf1d8b35e47fc285"+source = "git+https://github.com/lexmount/stylo?rev=973988b9c592a802eefdc5abe6072dd9ba221385#973988b9c592a802eefdc5abe6072dd9ba221385"dependencies = ["bitflags","cssparser",@@ -5128,7 +5128,7 @@ dependencies = [[[package]]name = "servo_arc"version = "0.5.0"-source = "git+https://github.com/lexmount/stylo?rev=2fce24a36f03223f9ad75672bf1d8b35e47fc285#2fce24a36f03223f9ad75672bf1d8b35e47fc285"+source = "git+https://github.com/lexmount/stylo?rev=973988b9c592a802eefdc5abe6072dd9ba221385#973988b9c592a802eefdc5abe6072dd9ba221385"dependencies = ["serde","stable_deref_trait",@@ -5440,7 +5440,7 @@ dependencies = [[[package]]name = "stylo"version = "0.22.0"-source = "git+https://github.com/lexmount/stylo?rev=2fce24a36f03223f9ad75672bf1d8b35e47fc285#2fce24a36f03223f9ad75672bf1d8b35e47fc285"+source = "git+https://github.com/lexmount/stylo?rev=973988b9c592a802eefdc5abe6072dd9ba221385#973988b9c592a802eefdc5abe6072dd9ba221385"dependencies = ["app_units","arrayvec",@@ -5496,7 +5496,7 @@ dependencies = [[[package]]name = "stylo_atoms"version = "0.22.0"-source = "git+https://github.com/lexmount/stylo?rev=2fce24a36f03223f9ad75672bf1d8b35e47fc285#2fce24a36f03223f9ad75672bf1d8b35e47fc285"+source = "git+https://github.com/lexmount/stylo?rev=973988b9c592a802eefdc5abe6072dd9ba221385#973988b9c592a802eefdc5abe6072dd9ba221385"dependencies = ["string_cache 0.11.0","string_cache_codegen 0.11.2",@@ -5505,7 +5505,7 @@ dependencies = [[[package]]name = "stylo_derive"version = "0.22.0"-source = "git+https://github.com/lexmount/stylo?rev=2fce24a36f03223f9ad75672bf1d8b35e47fc285#2fce24a36f03223f9ad75672bf1d8b35e47fc285"+source = "git+https://github.com/lexmount/stylo?rev=973988b9c592a802eefdc5abe6072dd9ba221385#973988b9c592a802eefdc5abe6072dd9ba221385"dependencies = ["darling","proc-macro2",@@ -5517,7 +5517,7 @@ dependencies = [[[package]]name = "stylo_dom"version = "0.22.0"-source = "git+https://github.com/lexmount/stylo?rev=2fce24a36f03223f9ad75672bf1d8b35e47fc285#2fce24a36f03223f9ad75672bf1d8b35e47fc285"+source = "git+https://github.com/lexmount/stylo?rev=973988b9c592a802eefdc5abe6072dd9ba221385#973988b9c592a802eefdc5abe6072dd9ba221385"dependencies = ["bitflags","stylo_malloc_size_of",@@ -5526,7 +5526,7 @@ dependencies = [[[package]]name = "stylo_malloc_size_of"version = "0.22.0"-source = "git+https://github.com/lexmount/stylo?rev=2fce24a36f03223f9ad75672bf1d8b35e47fc285#2fce24a36f03223f9ad75672bf1d8b35e47fc285"+source = "git+https://github.com/lexmount/stylo?rev=973988b9c592a802eefdc5abe6072dd9ba221385#973988b9c592a802eefdc5abe6072dd9ba221385"dependencies = ["app_units","cssparser",@@ -5544,7 +5544,7 @@ dependencies = [[[package]]name = "stylo_static_prefs"version = "0.22.0"-source = "git+https://github.com/lexmount/stylo?rev=2fce24a36f03223f9ad75672bf1d8b35e47fc285#2fce24a36f03223f9ad75672bf1d8b35e47fc285"+source = "git+https://github.com/lexmount/stylo?rev=973988b9c592a802eefdc5abe6072dd9ba221385#973988b9c592a802eefdc5abe6072dd9ba221385"dependencies = ["toml",]@@ -5563,7 +5563,7 @@ dependencies = [[[package]]name = "stylo_traits"version = "0.22.0"-source = "git+https://github.com/lexmount/stylo?rev=2fce24a36f03223f9ad75672bf1d8b35e47fc285#2fce24a36f03223f9ad75672bf1d8b35e47fc285"+source = "git+https://github.com/lexmount/stylo?rev=973988b9c592a802eefdc5abe6072dd9ba221385#973988b9c592a802eefdc5abe6072dd9ba221385"dependencies = ["app_units","bitflags",@@ -5650,7 +5650,7 @@ dependencies = [[[package]]name = "taffy"version = "0.15.0"-source = "git+https://github.com/ldm0/taffy?rev=eb97b9cc386746c1ba870aa249f4ae5119dfffb4#eb97b9cc386746c1ba870aa249f4ae5119dfffb4"+source = "git+https://github.com/ldm0/taffy?rev=e2e8ff8e27b170d48705ca99d88fecce3d0cec31#e2e8ff8e27b170d48705ca99d88fecce3d0cec31"dependencies = ["serde","slotmap",@@ -5667,7 +5667,7 @@ dependencies = ["getrandom 0.4.3","once_cell","rustix 1.1.4",- "windows-sys 0.61.2",+ "windows-sys 0.52.0",][[package]]@@ -5873,7 +5873,7 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"[[package]]name = "to_shmem"version = "0.6.0"-source = "git+https://github.com/lexmount/stylo?rev=2fce24a36f03223f9ad75672bf1d8b35e47fc285#2fce24a36f03223f9ad75672bf1d8b35e47fc285"+source = "git+https://github.com/lexmount/stylo?rev=973988b9c592a802eefdc5abe6072dd9ba221385#973988b9c592a802eefdc5abe6072dd9ba221385"dependencies = ["cssparser","servo_arc",@@ -5886,7 +5886,7 @@ dependencies = [[[package]]name = "to_shmem_derive"version = "0.2.0"-source = "git+https://github.com/lexmount/stylo?rev=2fce24a36f03223f9ad75672bf1d8b35e47fc285#2fce24a36f03223f9ad75672bf1d8b35e47fc285"+source = "git+https://github.com/lexmount/stylo?rev=973988b9c592a802eefdc5abe6072dd9ba221385#973988b9c592a802eefdc5abe6072dd9ba221385"dependencies = ["darling","proc-macro2",@@ -6583,7 +6583,7 @@ version = "0.1.11"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"dependencies = [- "windows-sys 0.61.2",+ "windows-sys 0.52.0",][[package]]diff --git a/Cargo.toml b/Cargo.tomlindex 7df161db0..4369e6c7c 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -109,18 +109,18 @@ curl-sys = { git = "https://github.com/lexmount/curl-rust", rev = "9d40ca90d8f19cookie = { git = "https://github.com/ldm0/cookie-rs", branch = "priority" }v8 = { path = "vendor/v8-152.2.0" }deno_v8 = { path = "vendor/deno_v8-0.3.0" }-selectors = { git = "https://github.com/lexmount/stylo", rev = "2fce24a36f03223f9ad75672bf1d8b35e47fc285" }-servo_arc = { git = "https://github.com/lexmount/stylo", rev = "2fce24a36f03223f9ad75672bf1d8b35e47fc285" }-stylo = { git = "https://github.com/lexmount/stylo", rev = "2fce24a36f03223f9ad75672bf1d8b35e47fc285" }-stylo_atoms = { git = "https://github.com/lexmount/stylo", rev = "2fce24a36f03223f9ad75672bf1d8b35e47fc285" }-stylo_dom = { git = "https://github.com/lexmount/stylo", rev = "2fce24a36f03223f9ad75672bf1d8b35e47fc285" }-stylo_static_prefs = { git = "https://github.com/lexmount/stylo", rev = "2fce24a36f03223f9ad75672bf1d8b35e47fc285" }-stylo_traits = { git = "https://github.com/lexmount/stylo", rev = "2fce24a36f03223f9ad75672bf1d8b35e47fc285" }+selectors = { git = "https://github.com/lexmount/stylo", rev = "973988b9c592a802eefdc5abe6072dd9ba221385" }+servo_arc = { git = "https://github.com/lexmount/stylo", rev = "973988b9c592a802eefdc5abe6072dd9ba221385" }+stylo = { git = "https://github.com/lexmount/stylo", rev = "973988b9c592a802eefdc5abe6072dd9ba221385" }+stylo_atoms = { git = "https://github.com/lexmount/stylo", rev = "973988b9c592a802eefdc5abe6072dd9ba221385" }+stylo_dom = { git = "https://github.com/lexmount/stylo", rev = "973988b9c592a802eefdc5abe6072dd9ba221385" }+stylo_static_prefs = { git = "https://github.com/lexmount/stylo", rev = "973988b9c592a802eefdc5abe6072dd9ba221385" }+stylo_traits = { git = "https://github.com/lexmount/stylo", rev = "973988b9c592a802eefdc5abe6072dd9ba221385" }svgtypes = { git = "https://github.com/lexmount/svgtypes", branch = "moli" }-taffy = { git = "https://github.com/ldm0/taffy", rev = "eb97b9cc386746c1ba870aa249f4ae5119dfffb4" }+taffy = { git = "https://github.com/ldm0/taffy", rev = "e2e8ff8e27b170d48705ca99d88fecce3d0cec31" }[patch."https://github.com/DioxusLabs/taffy"]-taffy = { git = "https://github.com/ldm0/taffy", rev = "eb97b9cc386746c1ba870aa249f4ae5119dfffb4" }+taffy = { git = "https://github.com/ldm0/taffy", rev = "e2e8ff8e27b170d48705ca99d88fecce3d0cec31" }[workspace.lints.clippy]disallowed_methods = "deny"diff --git a/moli-layout/src/taffy_tree.rs b/moli-layout/src/taffy_tree.rsindex c451c7298..498c5baa9 100644--- a/moli-layout/src/taffy_tree.rs+++ b/moli-layout/src/taffy_tree.rs@@ -2565,8 +2565,10 @@ wherelet display = self.boxes[parent.index()].style.display();display.is_flex_container() || display.is_grid_container()});- let is_intrinsic_contribution =- inputs.sizing_purpose == SizingPurpose::IntrinsicContribution;+ let is_intrinsic_contribution = matches!(+ inputs.sizing_purpose,+ SizingPurpose::IntrinsicContribution | SizingPurpose::ContentProbe+ );let shrink_to_fit = !has_definite_width&& (is_floated// A content-based block parent can probe this IFC with a