def test_background_image_zero_size_background(assert_pixels):
    # Regression test for https://github.com/Kozea/WeasyPrint/issues/217
    assert_pixels('''
        __________
        __________
        __________
        __________
        __________
        __________
        __________
        __________
        __________
        __________
    ''', '''
      <style>
        @page { size: 10px }
        html { background: #fff }
        body { background: url(pattern.png);
               background-size: cover;
               display: inline-block }
      </style>
      <body>
    ''')
,
tests/draw/test_background.py