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-position-negative-percentage-comparison-002.html - WPT Dashboard Interop Dashboard
<!doctype html>
<meta charset="utf-8">
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="match" href="reference/background-position-negative-percentage-comparison-ref.html">
<style>
.target {
margin: 50px;
width: 50px;
height: 50px;
border: 1px solid black;
background-image: url("support/100x100-blue-and-orange.png");
background-position: min(0%, 100%) max(0%, 100%);
/* Should behave the same as the declaration above: */
background-position-x: min(0%, 100%);
background-position-y: max(0%, 100%);
}
</style>
<div class="target"></div>