| <!DOCTYPE html> | |
| <html> | |
| <meta charset="utf-8"> | |
| <title>CSS Transforms: Reference Translate gradient background on root element</title> | |
| <link rel="author" title="Manuel Rego Casasnovas" href="mailto:[email protected]"> | |
| <style> | |
| html { | |
| background: green; | |
| /* Match scrollbar change caused by translateY transformation */ | |
| margin-top: -250vh; | |
| } | |
| </style> | |
| <div style="height: 400vh;"></div> | |
| </html> |