Closed
Bug 802279
Opened 13 years ago
Closed 13 years ago
border-image-* computed style should clamp negative calc()
Categories
(Core :: CSS Parsing and Computation, defect)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla20
People
(Reporter: dbaron, Assigned: dbaron)
Details
Attachments
(1 file)
2.17 KB,
patch
|
Waldo
:
review+
|
Details | Diff | Splinter Review |
https://hg.mozilla.org/mozilla-central/rev/978e9865042f changed a few nullptr to false in nsComputedDOMStyle.cpp. However, the three properties in question don't accept negative values, so those arguments should actually be |true|. (I suspect this was a merging error.)
Assignee | ||
Comment 1•13 years ago
|
||
Attachment #671951 -
Flags: review?(jwalden+bmo)
Comment 2•13 years ago
|
||
Isn't this clamping supposed to happen at the used value time?
Assignee | ||
Comment 3•13 years ago
|
||
This is getComputedStyle(), not computed style.
Comment 4•13 years ago
|
||
True. But except certain properties, shouldn't they match by default? I do kind of agree that getComputedStyle() should be more used-value like though.
Assignee | ||
Comment 5•13 years ago
|
||
getComputedStyle() is the used value, basically. (CSS 2.0 didn't have the distinction between computed and used; DOM-Level-2-Style was based on CSS 2.0.)
Comment 6•13 years ago
|
||
Comment on attachment 671951 [details] [diff] [review]
border-image-* properties should clamp negative calc(). ()
rs=me, I was just helping the compiler along to avoid an error, would be nice to have a test if this is at all observable, wish I had time to really investigate to find out...
Attachment #671951 -
Flags: review?(jwalden+bmo) → review+
Updated•13 years ago
|
Assignee: nobody → dbaron
Assignee | ||
Comment 7•13 years ago
|
||
Comment 8•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
You need to log in
before you can comment on or make changes to this bug.
Description
•