Fix: isolate review components from assembled context

AI-assisted implementation with Codex under maintainer direction.
This commit is contained in:
Paul Bakaus
2026-09-14 17:36:22 -07:00
parent c65febd291
commit 2b7527e2cd
10 changed files with 267 additions and 46 deletions
+6
View File
@@ -1396,6 +1396,12 @@ impl<'a> Page<'a> {
}
}
/// Preserve transparency when capturing isolated component paint.
pub fn set_transparent_background(&mut self) -> CdpResult<()> {
self.send("Emulation.setDefaultBackgroundColorOverride", json!({"color":{"r":0,"g":0,"b":0,"a":0}}))?;
Ok(())
}
/// Capture the current viewport without Chromium's beyond-viewport resize.
/// Use for observations that must not trigger responsive source selection.
pub fn screenshot_viewport(&mut self) -> CdpResult<String> {