Closed Bug 802279 Opened 12 years ago Closed 12 years ago

border-image-* computed style should clamp negative calc()

Categories

(Core :: CSS Parsing and Computation, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla20

People

(Reporter: dbaron, Assigned: dbaron)

Details

Attachments

(1 file)

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.)
Isn't this clamping supposed to happen at the used value time?
This is getComputedStyle(), not computed style.
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.
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 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+
Assignee: nobody → dbaron
https://hg.mozilla.org/mozilla-central/rev/2a9a612fa07a
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: