def test_page_background_fixed(assert_pixels):
    # Regression test for https://github.com/Kozea/WeasyPrint/issues/1993
    assert_pixels('''
        RBBB
        BBBB
        BBBB
        BBBB
    ''', '''
      <style>
         @page { size: 4px; margin: 1px;
                 background: url(pattern.png) red;
                 background-attachment: fixed; }
      </style>
      <body>''')
,
tests/draw/test_background.py