mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
9de322f0cf
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
19 lines
285 B
HTML
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>
|