Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-backgrounds/background-size-percentage-root.html - WPT Dashboard Interop Dashboard
<!doctype html>
<title>Percentage background-size on the root, when it's out-of-flow</title>
<link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
<link rel="match" href="background-size-percentage-root-ref.html">
<style>
:root {
position: fixed;
width: 100px;
height: 50px;
background-size: 100%;
background-repeat: no-repeat;
background-image: url('/images/green-100x50.png');
}
</style>