This narrow quirk implemented in InlineBoxPainter::constrainToLineTopAndBottomIfNeeded constraints painting of inline box decorations in quirks mode. It has been removed from Chrome so likely web compatible.
Created attachment 440780 [details] Patch
Created attachment 440781 [details] Patch
Created attachment 440787 [details] Patch
Committed r283895 (242772@main): <https://commits.webkit.org/242772@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 440787 [details].
<rdar://problem/84100550>