New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 637946 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 377847
Owner: ----
Closed: Aug 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Compat



Sign in to add a comment

display table width percent is truncated

Reported by pha...@gmail.com, Aug 15 2016

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36

Example URL:

Steps to reproduce the problem:
https://plnkr.co/edit/PT7x9zxyHOWbS0WsSRdO?p=preview

If you look at the widths of the table and table-cell, and compare them to the widths of the regular div's, they should be the same, but they aren't.

What is the expected behavior?
The red lines and the right side of the green and blue box should always align.  

What went wrong?
If you change the size of the preview box, you'll notice sometimes it lines up, other times it doesn't.

The width of the table and table-cell is the truncated value of the regular div.

It's impossible to properly align a table that's a percent with with regular div is the same percent width since the percents calculate differently.

Does it occur on multiple sites: N/A

Is it a problem with a plugin? N/A 

Did this work before? N/A 

Does this work in other browsers? N/A 

Chrome version: 52.0.2743.82  Channel: stable
OS Version: Ubuntu 16.04
Flash Version: Shockwave Flash 22.0 r0
 
Components: Blink>Layout>Table
Labels: Needs-Feedback
You are referring to the fact that the blue box is one pixel wider than the red one, right?

If so: Firefox renders them at the same width. So does Edge.
Cc: dgro...@chromium.org robhogan@chromium.org
Sounds like issue 377847. phazei, can you confirm?

Comment 5 by pha...@gmail.com, Aug 19 2016

I believe it is the same issue.  Though they describe it a little improperly.  It's not that it's being rounded up and down.  One isn't being rounded to the pixel, the table is being truncated/floor'd to the nearest pixel.

Comment 6 by pha...@gmail.com, Aug 19 2016

Also, check the plunkr again, it's very explicit now
phazei, thanks for the quick response.  Bad news is issue 377847 is going to take a lot of cycles and AFAIK no one is planning on tackling it in the near future, so you'll have to author a workaround :(

And thanks for the plunkr, it'll serve as a good verification test when we do fix the issue.
Mergedinto: 377847
Status: Duplicate (was: Unconfirmed)

Sign in to add a comment