Specification test cases
The test cases below are imported from the Turbo CSS specification.
They have been executed upon loading this page.
Attach the background image to the viewport.
t1 bg-fixed
.t1.bg-fixed {
background-attachment: fixed;
}
Attach the background image to the elements contents.
If scrolling is available, scroll with its contents.
t1 bg-local
.t1.bg-local {
background-attachment: local;
}
Attach the background image to the element itself.
Scrolling its contents doesn't affect the position of the background image.
t1 bg-scroll
.t1.bg-scroll {
background-attachment: scroll;
}