def test_absolute_image_background(assert_pixels):
    assert_pixels('''
        ____
        _RBB
        _BBB
        _BBB
    ''', '''
        <style>
          @page {
            size: 4px;
          }
          img {
            background: blue;
            position: absolute;
            top: 1px;
            left: 1px;
          }
        </style>
        <img src="pattern-transparent.svg" />
    ''')
,
tests/draw/test_absolute.py