Bug 107482 - CSS3 calc: calc in tables differs from Mozilla
Summary: CSS3 calc: calc in tables differs from Mozilla
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 16662
  Show dependency treegraph
 
Reported: 2013-01-21 15:57 PST by Mike Lawther
Modified: 2013-02-18 23:20 PST (History)
1 user (show)

See Also:


Attachments
calc-width-table-fixed-1 (747 bytes, text/html)
2013-01-21 15:59 PST, Mike Lawther
no flags Details
calc-width-table-fixed-1-expected (678 bytes, text/html)
2013-01-21 16:00 PST, Mike Lawther
no flags Details
calc-width-table-auto-1 (636 bytes, text/html)
2013-01-21 16:00 PST, Mike Lawther
no flags Details
calc-width-table-auto-1-expected (567 bytes, text/html)
2013-01-21 16:01 PST, Mike Lawther
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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).