def test_absolute_split_12(assert_pixels):
    assert_pixels('''
        BBBBBB__
        BBBBBB__
        ________
        ________
        ________
        ________
        ________
        ________
        BB______
        BB______
        BBRR____
        BBRR____
        BBRRRR__
        BBRRRR__
        BBRRRRRR
        BBRRRRRR
    ''', '''
        <style>
            @page {
                size: 8px;
            }
            body {
                color: blue;
                font-family: weasyprint;
                font-size: 2px;
                line-height: 1;
            }
            div {
                break-inside: avoid;
            }
            section {
                left: 2px;
                position: absolute;
                color: red;
            }
        </style>
        aaa
        <div>
          a
          <section>x<br>xx<br>xxx</section>
          <br>
          a<br>
          a<br>
          a
        </div>
    ''')
,
tests/draw/test_absolute.py