def test_outline_offset(assert_pixels):
    assert_pixels('''
        ____________
        _BBBBBBBBBB_
        _B________B_
        _B_RRRRRR_B_
        _B_R____R_B_
        _B_RRRRRR_B_
        _B________B_
        _BBBBBBBBBB_
        ____________
    ''', '''
      <style>
        @page {
          size: 12px 9px;
        }
        div {
          border: 1px solid red;
          outline: 1px solid blue;
          outline-offset: 1px;
          height: 1px;
          margin: 3px;
          min-height: auto;
          min-width: auto;
          width: 4px;
        }
      </style>
      <div></div>
    ''')
,
tests/draw/test_box.py