gecko-dev/layout/reftests/meta-viewport
Hiroyuki Ikezoe d243910c35 Bug 1550105 - Implement the parser for scale values in viewport meta tag as what the spec defines. r=botond
The relevant definition in the spec;
 https://drafts.csswg.org/css-device-adapt/#min-scale-max-scale

Before this change, if both of initial-scale and maximum-scale are negative,
both values are clamped to 0.25. Whereas with this change, negative scale
values are treated as if it's not specified so that initial-scale value is
automatically calculated based on the layout viewport size.
negative-initial-and-maximum-scale.html is a test case for the case.

Also with this change, initial-scale values are going to be clamped to the
range [0.25, 10] during parsing it so that initial-scale-0.html and
initial-scale-100.html need to be modified, now the former is scaled by 0.25x,
the latter is scaled by 10x.
(Before this change, initial-scale=0 and initial-scale=100 were treated as
 invalid scale values in nsViewportInfo::ConstrainViewportValues[1])

[1] https://searchfox.org/mozilla-central/rev/6c9f60f8cc064a1005cd8141ecd526578ae9da7a/dom/base/nsViewportInfo.cpp#15,19

Differential Revision: https://phabricator.services.mozilla.com/D32098

--HG--
extra : moz-landing-system : lando
2019-05-23 06:35:52 +00:00
..
box-shadow.html
clamped-by-default-minimum-scale.html Bug 1510214 - Change the default minimum scale to match Chrome's. r=botond 2018-11-29 07:32:25 +00:00
dynamic-grow-width-and-height.html Bug 1519013 - Shrink the content to display size if user has never changed the site resolution. r=botond 2019-03-28 03:04:59 +00:00
dynamic-grow-width.html Bug 1519013 - Shrink the content to display size if user has never changed the site resolution. r=botond 2019-03-28 03:04:59 +00:00
horizontal-overflow-hidden-region-ref.html Bug 1423013 - Expand the layout viewport to the minimum scale size for overflow:hidden pages. r=botond,tnikkel 2019-01-15 09:48:18 +00:00
horizontal-overflow-hidden-region.html Bug 1423013 - Expand the layout viewport to the minimum scale size for overflow:hidden pages. r=botond,tnikkel 2019-01-15 09:48:18 +00:00
initial-scale-0.html Bug 1550105 - Implement the parser for scale values in viewport meta tag as what the spec defines. r=botond 2019-05-23 06:35:52 +00:00
initial-scale-0_5-ref.html
initial-scale-0_25-ref.html Bug 1510214 - Change the default minimum scale to match Chrome's. r=botond 2018-11-29 07:32:25 +00:00
initial-scale-1.html Bug 1520077 - Use the minimum scale size even if no overflow:hidden is specified. r=botond 2019-01-31 03:21:22 +00:00
initial-scale-10-ref.html Bug 1550105 - Implement the parser for scale values in viewport meta tag as what the spec defines. r=botond 2019-05-23 06:35:52 +00:00
initial-scale-100.html Bug 1550105 - Implement the parser for scale values in viewport meta tag as what the spec defines. r=botond 2019-05-23 06:35:52 +00:00
min-scale-aspect-ratio.html Bug 1525948 - Add a reftest. r=hiro 2019-02-16 10:05:48 +00:00
minimum-scale.html
negative-initial-and-maximum-scale.html Bug 1550105 - Implement the parser for scale values in viewport meta tag as what the spec defines. r=botond 2019-05-23 06:35:52 +00:00
no-scalable-with-minimum-scale-ref.html Bug 1525805 - Don't apply the minimum scale size if user-scalable=no is specified. r=botond 2019-02-20 10:04:30 +00:00
no-scalable-with-minimum-scale.html Bug 1525805 - Don't apply the minimum scale size if user-scalable=no is specified. r=botond 2019-02-20 10:04:30 +00:00
no-viewport.html
no-zoom-ref.html Bug 1520077 - Use the minimum scale size even if no overflow:hidden is specified. r=botond 2019-01-31 03:21:22 +00:00
not-able-to-scrollTo.html Bug 1520077 - Use the minimum scale size even if no overflow:hidden is specified. r=botond 2019-01-31 03:21:22 +00:00
overflow-hidden-region-dynamic-width-change.html Bug 1519013 - Shrink the content to display size if user has never changed the site resolution. r=botond 2019-03-28 03:04:59 +00:00
overflow-hidden-region-with-negative-left-positioned-element.html Bug 1423013 - Expand the layout viewport to the minimum scale size for overflow:hidden pages. r=botond,tnikkel 2019-01-15 09:48:18 +00:00
overflow-hidden-region.html Bug 1423013 - Expand the layout viewport to the minimum scale size for overflow:hidden pages. r=botond,tnikkel 2019-01-15 09:48:18 +00:00
overflow-region-ref.html Bug 1423013 - Expand the layout viewport to the minimum scale size for overflow:hidden pages. r=botond,tnikkel 2019-01-15 09:48:18 +00:00
overflow-region.html Bug 1423013 - Expand the layout viewport to the minimum scale size for overflow:hidden pages. r=botond,tnikkel 2019-01-15 09:48:18 +00:00
position-fixed-on-minimum-scale-size-ref.html Bug 1516377 - Use the layout viewport for position:fixed elements if the viewport is larger than. r=botond 2019-02-07 05:39:33 +00:00
position-fixed-on-minimum-scale-size.html Bug 1516377 - Use the layout viewport for position:fixed elements if the viewport is larger than. r=botond 2019-02-07 05:39:33 +00:00
position-fixed-out-of-view.html Bug 1527516 - Increase the content size in position-fixed-out-of-view.html to avoid bug 1527187. r=hiro 2019-02-16 22:11:24 +00:00
reftest.list Bug 1550105 - Implement the parser for scale values in viewport meta tag as what the spec defines. r=botond 2019-05-23 06:35:52 +00:00
remove-overflow-hidden-region-ref.html Bug 1519013 - Shrink the content to display size if user has never changed the site resolution. r=botond 2019-03-28 03:04:59 +00:00
remove-overflow-hidden-region.html Bug 1519013 - Shrink the content to display size if user has never changed the site resolution. r=botond 2019-03-28 03:04:59 +00:00
scroll-to-unreachable-area-ref.html Bug 1423013 - Expand the layout viewport to the minimum scale size for overflow:hidden pages. r=botond,tnikkel 2019-01-15 09:48:18 +00:00
scroll-to-unreachable-area.html Bug 1423013 - Expand the layout viewport to the minimum scale size for overflow:hidden pages. r=botond,tnikkel 2019-01-15 09:48:18 +00:00
vertical-overflow-hidden-region.html Bug 1423013 - Expand the layout viewport to the minimum scale size for overflow:hidden pages. r=botond,tnikkel 2019-01-15 09:48:18 +00:00
viewport-width.html
wrapped-text-at-icb-ref.html Bug 1423013 - Expand the layout viewport to the minimum scale size for overflow:hidden pages. r=botond,tnikkel 2019-01-15 09:48:18 +00:00
wrapped-text-at-icb.html Bug 1423013 - Expand the layout viewport to the minimum scale size for overflow:hidden pages. r=botond,tnikkel 2019-01-15 09:48:18 +00:00