Bug 80357 - CSS3 calc: cannot determine sign of calculated Length without a maxValue
: CSS3 calc: cannot determine sign of calculated Length without a maxValue
Status: NEW
: WebKit
CSS
: 528+ (Nightly build)
: Unspecified Unspecified
: P2 Normal
Assigned To:
:
:
:
: 16662
  Show dependency treegraph
 
Reported: 2012-03-05 17:18 PST by
Modified: 2013-02-18 23:19 PST (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 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.