Bug 323419

Summary: [WebDriver][BiDi] Support the document origin and clip rectangles in browsingContext.captureScreenshot
Product: WebKit Reporter: Timothy Olusanya <seunxplicit>
Component: WebDriverAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: bburg, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 288325    

Timothy Olusanya
Reported 2026-09-04 02:07:27 PDT
browsingContext.captureScreenshot (being added in PR #72949 under bug 288325) validates the origin and clip parameters but always captures the viewport. Remaining work: capture the scrollable document for origin="document"; apply box clip rectangles (including rejecting an empty intersection with the origin rectangle as "unable to capture screen"); apply element clip rectangles once shared references resolve. WPT: capture_screenshot/origin.py::test_origin and capture_screenshot/clip.py.
Attachments
Radar WebKit Bug Importer
Comment 1 2026-09-11 02:08:12 PDT
Note You need to log in before you can comment on or make changes to this bug.