Bug 80357

Summary: CSS3 calc: cannot determine sign of calculated Length without a maxValue
Product: WebKit Reporter: Mike Lawther <mikelawther>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: syoichi
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 16662    

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.