New issue
Advanced search Search tips

Issue 827892 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 827891
Owner: ----
Closed: Apr 2018
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

HTML table cell border-right painted on the outside of the table past its boundary with collapsed borders

Reported by tekiela...@gmail.com, Apr 1 2018

Issue description

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

Steps to reproduce the problem:
1. Create a div with fixed width
2. Insert a table with collapsed border and width: 100% into that div
3. Set 1px border on TD and 0px on TH
4. The table expands past the div size i.e. >100% and overflows the container
5. Alternatively use the test case and compare the behavior with border-collapse on and off.

What is the expected behavior?
Expected behaviour is that the table total width is maximum 100% of the parent container. Border on the table cell should not overflow neither the row, table nor the container it is in.

What went wrong?
The right hand side is rendered on the outside of the table and causes the table to overflow 1px (width of the border) past the container size.

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 65.0.3325.181  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version: 

See https://stackoverflow.com/questions/49600706/cell-border-expanding-total-tables-width/49601423?noredirect=1#comment86210666_49601423
Also: https://jsfiddle.net/fbwyx66o/4/
 
tc.html
5.4 KB View Download
Labels: Needs-Triage-M65
Mergedinto: 827891
Status: Duplicate (was: Unconfirmed)

Sign in to add a comment