Skip to content

Safari fullpage desktop screenshots include window mask and top shadow #1074

@wswebcreation

Description

@wswebcreation

Describe the bug
When running tests in Safari on macOS, the screenshots returned by Safari Driver include the macOS window mask and a shadow at the top of the window. The bottom corners are rounded and the top contains several pixels of shadow. These artifacts are part of the macOS window compositor and are not part of the actual browser viewport.

Impact
The extra pixels cause incorrect viewport calculations for full page screenshots. As a result, the viewable area is detected incorrectly and stitching logic fails or produces misaligned images.

Image

Expected
Safari desktop screenshots should represent only the visible browser content without macOS window artifacts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions