New issue
Advanced search Search tips

Issue 715423 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: May 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

The width of the text element differs in the various crome version

Reported by deepaapragaasam@gmail.com, Apr 26 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.81 Safari/537.36

Steps to reproduce the problem:
1.While running the sample in various versions of chrome the textposition is different . I have attached the screenshot of the element position . box layout model 

What is the expected behavior?
Should be same across the various versions

What went wrong?
The difference causes the difficulty in coding for my application 

Did this work before? N/A 

Chrome version: 58.0.3029.81  Channel: stable
OS Version: 6.3
Flash Version:
 
version -47.png
157 KB View Download
version-58.jpg
36.1 KB View Download
Cc: rbasuvula@chromium.org
Labels: Needs-Feedback
@Reporter: Could you please provide the sample html/JS file to triage the issue further from chrome TE end.

Thanks in Advance!
Hi ,
Please find the sample for the issue:
http://jsplayground.syncfusion.com/g1r3tf1k

I am attaching the output screenshot obtained while running the sample in various versions of the chrome 
    
crome58.zip
63.2 KB Download
Project Member

Comment 3 by sheriffbot@chromium.org, Apr 27 2017

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding requester "rbasuvula@chromium.org" to the cc list and removing "Needs-Feedback" label.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Components: -Platform>DevTools Blink>Layout

Comment 5 by e...@chromium.org, May 1 2017

Status: WontFix (was: Unconfirmed)
Hard coding positions based on assumptions around text metrics is not going to work across platforms, versions, and devices as metrics are dependent on all three. You'll need to measure the text elements (using something like getBoundingClientRect) before positioning it instead of relying on hard-coded values.

Comment 6 by e...@chromium.org, May 1 2017

I understand that this is annoying but it is the only way to guarantee that it'll work across multiple versions, let along devices and operating systems. 

Hi ,
I would like to clarify that i have used the getBoundingClientRect only in the sample to fetch the bounds . 
I would like to share the sample
http://jsplayground.syncfusion.com/ti2cf4uv
In this sample I have used the text inside the svg and across the different version of chrome the getBoundingClientRect value differs. 
Attaching the screenshot of the version 47 and 58 . 
Can you kindly look into this and provide a solution for the query.

text47.zip
164 KB Download

Sign in to add a comment