def test_absolute_rtl_5(assert_pixels):
    assert_pixels('''
        RRRRRR__________
        RRRRRR__________
        ________________
    ''', '''
        <style>
            @page {
                size: 16px 3px;
            }
            div {
                color: red;
                direction: rtl;
                font-family: weasyprint;
                font-size: 2px;
                line-height: 1;
                position: absolute;
            }
        </style>
        <div>bbb</div>
    ''')
,
tests/draw/test_absolute.py