Closed
Bug 1297576
Opened 8 years ago
Closed 6 years ago
css calc() table cells' width is ignored
Categories
(Core :: Layout: Tables, defect, P2)
Tracking
()
RESOLVED
DUPLICATE
of bug 957915
Tracking | Status | |
---|---|---|
firefox57 | --- | fix-optional |
firefox58 | --- | affected |
People
(Reporter: numminorihsf, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: parity-chrome, testcase, Whiteboard: [webcompat])
Attachments
(1 file)
224 bytes,
text/html
|
Details |
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:48.0) Gecko/20100101 Firefox/48.0
Build ID: 20160728203720
Steps to reproduce:
1. Create an table.
2. Create 3 (for example) table cells with borders.
3. Remove left border from first cell and right border form last cell.
4. Set table cells width to `calc(33.333%)`
Example is here: https://jsfiddle.net/6fr44a9k/4/
Actual results:
Cell have not width = 33.333%.
First and last cells have width less than 2nd.
Expected results:
All cells should have width = 33.333%.
Reporter | ||
Updated•8 years ago
|
Summary: css calc() with 1 value is ignored → css calc() table cells' with is ignored
Comment 1•8 years ago
|
||
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0
Build ID: 20160824030337
I was able to reproduce the problem in both 48.0 and the nightly build 51.0a1. The tables work fine in the example Konstantin provides as long as the CSS reads "width: 33.333%;".
Change it to "width: calc(33.333%);" and the cells render in an odd way. First and last cell are about 25% wide, middle cell about 50%.
Restore the boundaries on the left and right side and both cases work.
(Chromium renders both cases the same, evenly divided cells, one-third of the width.)
Updated•8 years ago
|
Status: UNCONFIRMED → NEW
Component: Untriaged → Layout: Tables
Ever confirmed: true
Product: Firefox → Core
I ran in to this issue today when I needed to use inline styles in table cell widths, but wanted to show the math used, instead of random, "magic" numbers. This bug prevents me from doing so. IE and Edge are also affected.
Here's my test case: http://codepen.io/stowball/pen/ZLZBrM
Updated•7 years ago
|
Updated•7 years ago
|
Summary: css calc() table cells' with is ignored → css calc() table cells' width is ignored
Updated•7 years ago
|
status-firefox57:
--- → fix-optional
status-firefox58:
--- → affected
Comment 4•7 years ago
|
||
Mass bug change to replace various 'parity' whiteboard flags with the new canonical keywords. (See bug 1443764 comment 13.)
Keywords: parity-chrome
Whiteboard: [parity-chrome][webcompat] → [webcompat]
Comment 5•6 years ago
|
||
Resolving as DUPLICATE of bug 957915
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•