2 <title>Tiled and scaled background with 'transform: scale(
1, -
1)'
</title>
9 background-size:
95px
100px;
10 transform: scale(
1, -
1);
14 <div id=subject
></div>
17 function stripedImage(c1
, c2
) {
18 var c
= document
.createElement('canvas');
19 c
.width
= c
.height
= 100;
20 var ctx
= c
.getContext('2d');
22 ctx
.fillRect(0, 0, 100, 50);
24 ctx
.fillRect(0, 50, 100, 50);
25 return c
.toDataURL('image/png');
27 document
.getElementById('back').style
.background
= 'url(' + stripedImage('#080', '#f00') + ')';
28 document
.getElementById('subject').style
.backgroundImage
= 'url(' + stripedImage('#080', 'transparent') + ')';