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