Closed Bug 1505578 Opened 3 years ago Closed 3 years ago
Flexbox highlighter is offset when container contains padding
Since bug 1501226 landed the Flexbox Highlighter is offset inside iframes. See attached image.
Turns out that padding inside the container also causes issues but is related to the same calculation.
This issue is nothing to do with iframes. When a flexbox container contains padding then everything is offset because we set our canvas origin to the content box of the container. I agree that we should only draw in the content area we need to make our discovery of a node's coordinates much smarter to avoid situations like this.
Summary: Flexbox highlighter is offset inside iframes → Flexbox highlighter is offset when container contains padding
3 years ago
Depends on: 1506597
I found a few situations where everything is offset so I am currently testing with a bunch of different combination of margin, padding, etc.
Tracked for 65. This issue was flagged by SV as a reason for yellow sign off on "DevTools Flexbox inspector" feature.
3 years ago
Pushed by email@example.com: https://hg.mozilla.org/integration/autoland/rev/01b3cf972555 Flexbox highlighter is offset when container contains padding r=gl
You need to log in before you can comment on or make changes to this bug.