In Monospace font, Div containing 10000 characters is different length than several spans containing the same number characters
Reported by
charlott...@gmail.com,
Jul 12
|
||||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36 Steps to reproduce the problem: 1. Load webpage 2. Scroll to the end 3. See that they are different lengths What is the expected behavior? The lines should be the same length What went wrong? The lines are different lengths even though the font is monospace with the same number of characters Did this work before? N/A Does this work in other browsers? Yes Chrome version: 67.0.3396.99 Channel: stable OS Version: OS X 10.13.4 Flash Version: Here is a link to the stack overflow question I asked about it. https://stackoverflow.com/questions/51294240/why-is-a-div-longer-than-several-spans-with-the-same-content-only-in-chrome
,
Jul 13
Might be a duplicate of bug 795583.
,
Jul 13
Able to reproduce the issue on Mac 10.13.3, Win-10 and Ubuntu 17.10 using chrome reported version #67.0.3396.99 and latest canary #69.0.3489.0. This is a non-regression issue as it is observed from M60 old builds. Hence, marking it as untriaged to get more inputs from dev team. Thanks...!!
,
Jul 18
,
Jul 18
Having looked into this in detail this is due to a loss of precision with how text and elements are represented. Text is measured and positioned using floating point while elements use fixed point to ensure consistency. We do not consider this to be a bug. There are no guarantees that rendering is unaffected by spans or other tags. |
||||
►
Sign in to add a comment |
||||
Comment 1 by krajshree@chromium.org
, Jul 13