Bug 80357 - CSS3 calc: cannot determine sign of calculated Length without a maxValue
Summary: CSS3 calc: cannot determine sign of calculated Length without a maxValue
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: 2012-03-05 17:18 PST by Mike Lawther
Modified: 2013-02-18 23:19 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Lawther 2012-03-05 17:18:22 PST
WebCore/platform/Length.h defines the following functions:

    bool isZero() const 
    bool isPositive() const
    bool isNegative() const

A calculated value in a Length is always a mixed percent/absolute, eg -webkit-calc(100% - 10px). Without a maxValue (ie the value that equates to 100%) passed in to these functions, we cannot determine the sign or the zero-ness of the result.