Fix #12815

Don't ignore `data-offset-top=0` `data-offset-bottom=0`