Bug 107482

Summary: CSS3 calc: calc in tables differs from Mozilla
Product: WebKit Reporter: Mike Lawther <mikelawther>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bfulgham, syoichi, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 16662    
Attachments:
Description Flags
calc-width-table-fixed-1
none
calc-width-table-fixed-1-expected
none
calc-width-table-auto-1
none
calc-width-table-auto-1-expected none

Description Mike Lawther 2013-01-21 15:57:32 PST
Our calc() implementation produces a different result from Mozilla when used in tables. This bug is to document that a difference exists.

Note that this is acceptable per spec (http://www.w3.org/TR/css3-values/), as an implementation is allowed to treat a calc() inside a table as if 'auto' had been specified.

Mozilla's test suite can be found here: http://mxr.mozilla.org/mozilla-central/source/layout/reftests/w3c-css/submitted/values3/

The tests that differ are:
 * calc-width-table-fixed-1.html
 * calc-width-table-auto-1.html
Comment 1 Mike Lawther 2013-01-21 15:59:24 PST
Created attachment 183842 [details]
calc-width-table-fixed-1
Comment 2 Mike Lawther 2013-01-21 16:00:08 PST
Created attachment 183843 [details]
calc-width-table-fixed-1-expected
Comment 3 Mike Lawther 2013-01-21 16:00:40 PST
Created attachment 183844 [details]
calc-width-table-auto-1
Comment 4 Mike Lawther 2013-01-21 16:01:02 PST
Created attachment 183845 [details]
calc-width-table-auto-1-expected
Comment 5 Mike Lawther 2013-01-21 16:04:17 PST
Note that all the attached files are from Mozilla's test suite, and are attached here for convenience only. All credit for the tests goes to the original author (L. David Baron).
Comment 6 Brent Fulgham 2022-07-13 13:52:56 PDT
The third row of the test still fails on Safari 15.
Comment 7 Radar WebKit Bug Importer 2022-07-13 13:53:07 PDT
<rdar://problem/96971627>