Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-images/linear-gradient-body-sibling-index.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>CSS Images Test: Linear gradient with sibling-index()</title>
<link rel="match" href="linear-gradient-body-sibling-index-ref.html">
<link rel="assert" content"sibling-index() is 2 for body">
<style>
body {
background-position: top left;
background-repeat: no-repeat;
background-size: 100px 100px;
background-image: linear-gradient(blue calc(20px * sibling-index()), yellow);
}
</style>
<body>