github web-platform-tests/wpt merge_pr_48837

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
10 months ago

servoshell: Allow overriding screen resolution with a command-line argument

There is a command-line argument to override the default window size,
but not one for overriding the default screen resolution. This is
important for testing pages that use screen size to have different
behavior.

In addition to adding the new option this change:

  • Renames the --resolution command-line argument to --window-size
    to remove ambiguity with the --screen-size argument.
  • Passes the screen size as device independent (device pixels scaled by
    HiDPI factor) to Servo internals. Not only it make it simpler to pass
    the --window-size override, it makes more sense. Different screens
    can have different HiDPI factors and these can be different from the
    scale of the window. This makes the screen HiDPI factor totally
    independent of the one that Servo uses for the window.

Signed-off-by: Martin Robinson mrobinson@igalia.com

Don't miss a new wpt release

NewReleases is sending notifications on new releases.