RESOLVED CONFIGURATION CHANGED 112098
Empty span inserted just after a text-wrap point has an offsetTop and offsetHeight of 0
https://bugs.webkit.org/show_bug.cgi?id=112098
Summary Empty span inserted just after a text-wrap point has an offsetTop and offsetH...
Philip Peitsch
Reported 2013-03-11 20:04:19 PDT
As per attached demonstration HTML. The brokenEndSpan element reports an offsetTop and offsetHeight of 0 (possibly other properties) . If I set margin and padding data (as in the workaround included), the offset data is correct. Alternatively, if I move the element so it is not the first element just after the text wrap, it the offset data appears to be correct. This has been reproduced on: Google Chrome - 25.0.1364.160, WebKit: 537.22 (@145015) Safari - 6.0.2, WebKit: 536.26.17 (as found here: http://en.wikipedia.org/wiki/Safari_version_history) Firefox returns the brokenEndSpan element with the expected non-zero offset values.
Attachments
Demonstration page showing calculation problem (1.10 KB, text/html)
2013-03-11 20:04 PDT, Philip Peitsch
no flags
Philip Peitsch
Comment 1 2013-03-11 20:04:59 PDT
Created attachment 192628 [details] Demonstration page showing calculation problem
Ahmad Saleem
Comment 2 2022-09-12 08:59:53 PDT
*** Safari Technology Preview 153 *** brokenStart.offsetTop: 36 brokenStart.offsetHeight: 18 brokenEnd.offsetTop: 36 brokenEnd.offsetHeight: 18 ======= workaroundStart.offsetTop: 90 workaroundStart.offsetHeight: 18 workaroundEnd.offsetTop: 108 <--------- DIFFERENT workaroundEnd.offsetHeight: 18 *** Chrome Canary 107 *** brokenStart.offsetTop: 37 brokenStart.offsetHeight: 19 brokenEnd.offsetTop: 37 brokenEnd.offsetHeight: 19 ======= workaroundStart.offsetTop: 93 workaroundStart.offsetHeight: 19 workaroundEnd.offsetTop: 93 workaroundEnd.offsetHeight: 19 *** Firefox Nightly 106 *** brokenStart.offsetTop: 40 brokenStart.offsetHeight: 16 brokenEnd.offsetTop: 40 brokenEnd.offsetHeight: 16 ======= workaroundStart.offsetTop: 98 workaroundStart.offsetHeight: 16 workaroundEnd.offsetTop: 98 workaroundEnd.offsetHeight: 16 _________ I think now "broken" one is fine but workaround is causing problem. :-p Just wanted to share updated testing result. Thanks!
Ahmad Saleem
Comment 3 2023-03-16 19:04:02 PDT
Working fine with Safari Technology Preview 165 and don’t have ‘Different’ highlighted on Comment 02 on myself. Marking this as “RESOLVED CONFIGURATION CHANGED”.
zalan
Comment 4 2023-03-16 19:15:22 PDT
Thanks! (IFC progression)
Note You need to log in before you can comment on or make changes to this bug.