[Bug 16062] New: Behavior for out-of-range values needs to be defined

https://www.w3.org/Bugs/Public/show_bug.cgi?id=16062

           Summary: Behavior for out-of-range values needs to be defined
           Product: CSS
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Transitions
        AssignedTo: dino@apple.com
        ReportedBy: ayg@aryeh.name
         QAContact: public-css-bugzilla@w3.org
                CC: cmarrin@apple.com, eoconnor@apple.com, smfr@me.com


This is currently issue 7 in the spec, but I'm filing a bug so I can get
notified when it's fixed:

"""
Issue: Need to describe handling of out-of-range values that can result from
cubic-bezier(). Clamping values to the allowed range is probably the best
solution.
"""

For example, if you have something like cubic-bezier(0.25, -2, 0.75, 1), on a
property like border-bottom-width that doesn't accept negative values, the
computed value should be clamped to 0px at points where it would be negative.

Gecko seems to do this correctly.  WebKit seems not to clamp anything, and
instead either allows the negative value, or has a large positive value like
134217660px, or falls back to a default value like "normal".  IE and Opera
clamp some properties correctly but not others.

(I hit this issue while porting Gecko's test_transitions_per_property.html. 
Non-Gecko browsers fail a lot of the clamping tests, but the spec isn't clear
that Gecko is right.)

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Tuesday, 21 February 2012 17:15:50 UTC