def test_leader_in_inline(assert_pixels):
    assert_pixels('''
        RR__GGBBBBBB__RR
        RR__GGBBBBBB__RR
    ''', '''
      <style>
        @page {
          size: 16px 2px;
        }
        body {
          color: red;
          font-family: weasyprint;
          font-size: 2px;
          line-height: 1;
        }
        span {
          color: lime;
        }
        span::after {
          color: blue;
          content: leader('-');
        }
      </style>
      <div>a <span>a</span> a</div>
    ''')
,
tests/draw/test_leader.py