offsetLeft wrong for inline inside positioned inline
Reported by
msten...@opera.com,
Aug 16 2016
|
|||||
Issue descriptionoffsetLeft includes the width of text preceding the positioned offsetParent inline.
,
Aug 31 2016
,
Aug 31 2016
,
Oct 12 2016
,
Oct 12 2016
,
Nov 3 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/f903f01899c880f15af678b6e44404a7d9b1735f commit f903f01899c880f15af678b6e44404a7d9b1735f Author: karlo <karlo@opera.com> Date: Thu Nov 03 14:06:40 2016 Make offsetTop/Left handle a relative positioned inline offsetParent correctly. offsetTop and offsetLeft happily ignored the fact that offsetParent could be a relative positioned inline. I used the opportunity to change some variable names in LayoutBoxModelObject::adjustedPositionRelativeTo() in order to hopefully make it clearer what's going on. BUG= 638184 Review-Url: https://codereview.chromium.org/2414683002 Cr-Commit-Position: refs/heads/master@{#429571} [add] https://crrev.com/f903f01899c880f15af678b6e44404a7d9b1735f/third_party/WebKit/LayoutTests/fast/inline/inline-offsetLeft-relpos-expected.txt [add] https://crrev.com/f903f01899c880f15af678b6e44404a7d9b1735f/third_party/WebKit/LayoutTests/fast/inline/inline-offsetLeft-relpos.html [modify] https://crrev.com/f903f01899c880f15af678b6e44404a7d9b1735f/third_party/WebKit/Source/core/layout/LayoutBoxModelObject.cpp [modify] https://crrev.com/f903f01899c880f15af678b6e44404a7d9b1735f/third_party/WebKit/Source/core/layout/LayoutInline.cpp [modify] https://crrev.com/f903f01899c880f15af678b6e44404a7d9b1735f/third_party/WebKit/Source/core/layout/LayoutInline.h
,
Nov 3 2016
|
|||||
►
Sign in to add a comment |
|||||
Comment 1 by cbiesin...@chromium.org
, Aug 17 2016