Bug 80357
Summary: | CSS3 calc: cannot determine sign of calculated Length without a maxValue | ||
---|---|---|---|
Product: | WebKit | Reporter: | Mike Lawther <mikelawther> |
Component: | CSS | Assignee: | 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 |
Mike Lawther
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.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |