What determines highlight size on web?

Hi all! I was wondering what determines highlight size on web. Illustrator (left) highlights as expected, but on the web the highlight is unexpectedly tall. I’ve tried setting the ascender metric differently but nothing changes.

23%20PM

In Adobe apps, it depends on the actual font bbox, i.e. the highest and lowest point in the font. In web browsers, I believe there are different calculations for different browsers and operating systems.

Thank you for the quick answer!