Wrong Devtools height of element?

29 views
Skip to first unread message

Trichter

unread,
Sep 4, 2021, 8:34:19 AM9/4/21
to Chromium-discuss

Hey,
A colleague just found a "bug" where Javascript showed a different height (scroll/offset/client are all the same => height: 50px) of an element than the Chrome devtools(height = 57px). The Problem appeared in Edge 92.0.902.84 on a heading (not sure which size though).

1. Any idea how that could happen?
2. How are the Chromium Devtools determining the height of an element?

PhistucK

unread,
Sep 4, 2021, 8:51:14 AM9/4/21
to janric...@gmail.com, Chromium-discuss
Maybe margin, or flexbox gap? Probably not.
Without code/test case, it is hard to tell.

PhistucK


--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

---
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discu...@chromium.org.
Reply all
Reply to author
Forward
0 new messages