gecko-dev/layout/reftests/meta-viewport/position-fixed-on-half-height-content.html
Hiroyuki Ikezoe 9de322f0cf Bug 1508177 - Add reftests to make sure position:fixed elements are attached to the layout viewport even if the layout viewport contains no visible contents area. r=botond
position-fixed-on-half-height-content.html is a test case that the document's
layout viewport contains no visible contents area without scaling.

position-fixed-on-landscape-content.html is a test case that the document's
layout viewport will contain no visible contents area if the document is scaled
down to fit the document to screen size.

position-fixed-on-square-content.html is a test case that the document's layout
viewport will contain no visible contents ares if the document is scaled up to
fit the document to screen size.

The latter two cases currently fail.

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

--HG--
extra : moz-landing-system : lando
2019-08-13 22:36:39 +00:00

19 lines
285 B
HTML

<!DOCTYPE html>
<meta name="viewport" content="width=device-width">
<style>
html, body {
margin: 0;
width: 100%;
height: 50%;
}
#fixed {
width: 100px;
height: 100px;
background-color: green;
position: fixed;
bottom: 0px;
right: 0px;
}
</style>
<div id="fixed"></div>