def test_whitespace_float_between(assert_pixels):
    assert_pixels('''
        RRRR__RRRR__BB
        RRRR__RRRR__BB
        ______________
        ______________
    ''', '''
        <style>
            @page {size: 14px 4px}
            body {
              color: red;
              font-family: weasyprint;
              font-size: 2px;
              line-height: 1;
            }
            div {float: right; color: blue}
        </style>
        <span>aa </span><div>a</div><span> aa</span>
    ''')
,
tests/draw/test_whitespace.py