Issue with subpixels ("Browser zoom" and "Column width")
Reported by
alexurba...@gmail.com,
May 2 2017
|
||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.81 Safari/537.36 Steps to reproduce the problem: 1. Open attached index.html 2. Find that the columns of the two tables align neatly. 3. Set browser zoom to e.g. 110%/125% (e.g. using mouse wheel) What is the expected behavior? The columns of the two tables should still be aligned. What went wrong? The columns are no longer aligned correctly. https://i.imgur.com/qT6LFIQ.png Did this work before? No Does this work in other browsers? N/A Chrome version: 58.0.3029.81 Channel: stable OS Version: 10.0 Flash Version: Shockwave Flash 25.0 r0 Edge, IE and Firefox do not exhibit this behaviour. I could not test against Safari.
,
Aug 11 2017
We have a similar problem with Windows 10. The combination of Windows Zoom and Chrome Zoom is changing the column widths. For example, when Windows zoom at 100% and Chrome zoom at 125%, some columns (not all of them) start to be off by one pixel. Same for Windows at 125% and Chrome at 100%, 110%,and 125%. We think it's the same problem as this one. The width is changed by the zooming percentage. There is no update since May 3. Is there any progress on fixing this bug? Thank you.
,
Sep 12 2017
,
Sep 12 2017
,
Sep 13 2017
Table cells are aligned to device pixels and round independently of each other to ensure that two or more cells given the same width are rendered at the same width. This is different from most other layout types in blink. When zoom is applied the 25% cells (in this case) all round up. As does the 100% one. This results in the combination of the four 25% cells being 3px wider than the 100% one. This is by design and working as intended as otherwise the width of the 25% cells would be inconsistent. The easiest way to avoid this is to have both rows be in the same table and use cellspan. That way the cells are guaranteed to align.
,
Sep 14 2017
I disagree with your conclusion, because the width of the 25% cells over the whole table always is "inconsistent", and ever will be, since you always have a remainder when dividing the width of the table by the number of cells. The question only is where to put this remainder, and Chrome obviously decides that the remainder should be put onto the last cells, instead of spreading it out evenly over the whole width of the table. With more and even smaller columns, the eye may start to notice this even without my second "ruler table" for comparison. Please note that this affects your proposed tables with colspan as well, Chrome is the only browser where rendering differs notably depending on whether the small columns are 25px wide or the spanned columns are 100px wide. (See attached index.html)
,
Dec 14 2017
Please reconsider fixing this bug. Other browsers work as expected, visually it is clear that layout is broken. Large tables with spans are essential for working with larger amount of data in browser. Complicating DOM to work around this bug, lowers the performance.
,
Dec 14 2017
Here is how it looks at 25% zoom out.
,
Dec 14 2017
the above screenshot is from Chrome 63-beta on Windows 10.
,
Dec 14 2017
Hello Konrad, I fear that your problem is entirely different. In your case, the issue is that on 25%, the cells are too narrow to fully render the text, and Chrome decides (correctly) to increase the cell width until the text fits into the cell. I may be wrong, but this does not look like the described subpixel issue. Please check whether the style text-overflow:ellipsis or text-overflow:clip on all cells fixes your table size.
,
Dec 14 2017
text-overflow:ellipsis or clip on each TD does not fix the issue. However, I agree that it may be a different issue. I'm more interested in proper alignment of lower level cell borders with higher level borders, than in fixing the extreme case like this. I was just trying to make the problems more evident. |
||||
►
Sign in to add a comment |
||||
Comment 1 by kavvaru@chromium.org
, May 3 2017Labels: M-60 OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)