"Take Screenshot of the Entire Page" includes elements outside page bounds, e.g. elements with negative top or left, or negative bottom or right values. I think this can only be elements with position: fixed or position: absolute.
Elements with position: absolute are visible in the screenshot while elements with position: fixed are not, but the screenshot is extended to the edges of elements with either position value.
Steps to reproduce:
Real-world site:
- Navigate to YouTube.com and open a video
- Use "Take Screenshot of the Entire Page" (Ctrl + Cmd + 2)
- Observe that the screenshot includes a button that is way outside page bounds and the screenshot is larger the user-accessible page
Minimal example:
- Open this test page:
- Click the button to move the divs out of the bounds of the page
- Use "Take Screenshot of the Entire Page" (Ctrl + Cmd + 2)
- Observe that the screenshot has expanded to the minimum size to include both the outside page bounds divs
- Observe that the
position: fixed div is not visible (despite the screenshot expanding to include it), but the position: absolute div is visible
Expected behavior:
"Take Screenshot of the Entire Page" includes only user-accessible space
Orion, OS version; hardware type:
Orion 0.99.109.1.3-beta (WebKit 613.1.12)
macOS Version 12.1 (Build 21C52)
MacBookPro18,3
Session Info:
Enabled Extensions:
- Reddit Enhancement Suite (firefox)
- Bitwarden - Free Password Manager (firefox)
- SponsorBlock for YouTube - Skip Sponsorships (firefox)
- Dark Reader (firefox)
- Request Control (firefox)
Disabled Extensions:
Non Default Settings:
- AlwaysShowToolbarInFullScreen => 0
- AutofillEnabled => 0
- PreferredBookmarkFolderId => 14
- HistorySuggestionsEnabled => 1
- ContentBlockerLastUpdated => 2021-12-21 00:00:00 +0000
- CustomAppIcon => appicon3
- CustomAppIconData => {length = 2231096, bytes = 0x89504e47 0d0a1a0a 0000000d 49484452 ... 49454e44 ae426082 }
- isBackgroundImageDarkOnStartPage => 0
- DownloadLocation => /Users/spencer/Downloads
- AskForEachDownload => 1
- FirstLaunch => 0
- FirstTimeWebExtensionNotice => 1
- FocusMode => 0
- HyperlinkAuditingEnabled => 0
- ShowErrorIndicator => 0
- ReaderModeBorderShadowEnabled => 0
- LastUsedBuildVersion => 109.1.3
- PreCompiledContentRuleListVersion => 109.1.3
- LastCrashCheckDate => 2022-01-01 06:17:37 +0000
- NetworkPredictionEnabled => 0
- NextBookmarkID => 19
- NextDownloadID => 127
- OpenNewTabsInForeground => 0
- SavedWindowSize => 1512.0,944.0
- SavedWindowPosition => -0.0,-0.0
- SearchSuggestEnabled => 1
- ShowPrivacyButtonNotifications => 0
- BookmarksSidebarVisible => 0
- BookmarksSidebarVisibleOnStartPageOnly => 0
- BookmarksSidebarWidth => 240
- QuitWithConfirmation => 0
- CurrentToolbarSize => small
- VerticalTabsWidth => 315
- ActiveLibraryTab => bookmarks
- CyclesThroughRecentTabs => 0
- UndoTabClose => 0
Image/Video:
<Copy/paste or drag and drop to upload images or videos (up to 20MB)>