From ccb7fd1a3f71a3312e13d594d4d2579190a5dff2 Mon Sep 17 00:00:00 2001 From: Hiroyuki Ikezoe Date: Tue, 13 Aug 2019 22:37:50 +0000 Subject: [PATCH] Bug 1508177 - Add reftests to make sure that expanded layout viewport areas that are initially out of the visual viewport are rendered by setting resolution. r=botond Differential Revision: https://phabricator.services.mozilla.com/D40767 --HG-- extra : moz-landing-system : lando --- layout/reftests/meta-viewport/reftest.list | 1 + ...ution-change-on-landscape-content-ref.html | 20 ++++++++++++++ ...esolution-change-on-landscape-content.html | 26 +++++++++++++++++++ layout/tools/reftest/README.txt | 4 ++- 4 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 layout/reftests/meta-viewport/resolution-change-on-landscape-content-ref.html create mode 100644 layout/reftests/meta-viewport/resolution-change-on-landscape-content.html diff --git a/layout/reftests/meta-viewport/reftest.list b/layout/reftests/meta-viewport/reftest.list index c2eea68bfa79..aacd457b7513 100644 --- a/layout/reftests/meta-viewport/reftest.list +++ b/layout/reftests/meta-viewport/reftest.list @@ -18,6 +18,7 @@ default-preferences pref(dom.meta-viewport.enabled,true) pref(apz.allow_zooming, fails == position-fixed-on-landscape-content.html position-fixed-on-half-height-content-ref.html fails == position-fixed-on-square-content.html position-fixed-on-square-content-ref.html fails == async-scroll-to-no-content-area.html async-scroll-to-no-content-area-ref.html +fails == resolution-change-on-landscape-content.html resolution-change-on-landscape-content-ref.html skip-if(!Android) fails-if(geckoview&&webrender) == position-fixed-on-minimum-scale-size.html position-fixed-on-minimum-scale-size-ref.html == position-fixed-out-of-view.html about:blank diff --git a/layout/reftests/meta-viewport/resolution-change-on-landscape-content-ref.html b/layout/reftests/meta-viewport/resolution-change-on-landscape-content-ref.html new file mode 100644 index 000000000000..d2058d48eecf --- /dev/null +++ b/layout/reftests/meta-viewport/resolution-change-on-landscape-content-ref.html @@ -0,0 +1,20 @@ + + + +
diff --git a/layout/reftests/meta-viewport/resolution-change-on-landscape-content.html b/layout/reftests/meta-viewport/resolution-change-on-landscape-content.html new file mode 100644 index 000000000000..6343be70edba --- /dev/null +++ b/layout/reftests/meta-viewport/resolution-change-on-landscape-content.html @@ -0,0 +1,26 @@ + + + + + +
+ diff --git a/layout/tools/reftest/README.txt b/layout/tools/reftest/README.txt index 4b8701094d79..2652ee7fde1c 100644 --- a/layout/tools/reftest/README.txt +++ b/layout/tools/reftest/README.txt @@ -604,7 +604,9 @@ is rendered with the specified resolution (as if the user pinch-zoomed in to that scale). Note that the difference between reftest-async-zoom and reftest-resolution is that reftest-async-zoom only applies the scale in the compositor, while reftest-resolution causes the page to be paint at that -resolution. +resolution. This attribute can be used together with initial-scale in meta +viewport tag, in such cases initial-scale is applied first then +reftest-resolution changes the scale. This attributes requires the pref apz.allow_zooming=true to have an effect.