def test_before_after_3(assert_same_renderings):
    assert_same_renderings(
        '''
            <style>
                @page { size: 100px 30px }
                body { margin: 0; }
                p:before { content: 'a' url(pattern.png) 'b'}
            </style>
            <p>c</p>
        ''',
        '''
            <style>
                @page { size: 100px 30px }
                body { margin: 0 }
            </style>
            <p><span>a<img src="pattern.png" alt="Missing image">b</span>c</p>
        ''', tolerance=10)
<style>
@page { size: 100px 30px }
body { margin: 0; }
p:before { content: 'a' url(pattern.png) 'b'}
</style>
<p>c</p>
''',
tests/draw/test_before_after.py