Bug 84666
Summary: | <iframe> with embedded youtube.com has improper content layout, reflow fixes it | ||
---|---|---|---|
Product: | WebKit | Reporter: | diabolomaster |
Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED CONFIGURATION CHANGED | ||
Severity: | Normal | CC: | apavlov, bweinstein, hyatt, joepeck, karlcow, keishi, koivisto, loislo, pfeldman, pmuellr, rik, simon.fraser, yurys, zimmermann |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://gregthebusker.com/iframedemo.html |
diabolomaster
Go to http://gregthebusker.com/iframedemo.html
Inspect the play icon in the center of the second video.
Results: The play icon moves from it's original location.
Expected result: the element doesn't move.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Alexander Pavlov (apavlov)
Actually, the svg button element moves when any of its ancestor elements (up to the iframe document's HTML) is inspected. This happens when the computed style is requested for the focused element (looks like this results in a style update/reflow of the affected document for some reason.)
Antti Koivisto
Sounds like a style or layout invalidation bug. Inspecting forces style recalc and/or layout and fixes it. This will need a reduction.
Alexander Pavlov (apavlov)
Incidentally, I've just been told about http://stackoverflow.com/questions/10288092/using-google-chrome-web-inspector-changes-page-layout, which reports a similar issue against "display: inline-block" elements.
Karl Dubost
Not relevant anymore.
It doesn't reproduce.