Cover image-set() candidate selection by resolution for background images. The tests cover both source-order-independent selection and calculated resolution descriptors that require layout context.
14 lines
191 B
HTML
14 lines
191 B
HTML
<!doctype html>
|
|
<style>
|
|
html,
|
|
body {
|
|
margin: 0;
|
|
}
|
|
|
|
.box {
|
|
width: 100px;
|
|
height: 100px;
|
|
background: red;
|
|
}
|
|
</style>
|
|
<div class="box"></div>
|