Fix infinite loop

To reproduce:

```html
<span style="font-size: 128px">abc</span>
```