[Webkit-unassigned] [Bug 102654] New: Zero size gradient should paint nothing on canvas

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 19 00:24:30 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=102654

           Summary: Zero size gradient should paint nothing on canvas
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
               URL:
                    http://w3c-test.org/html/tests/approved/canvas/2d.grad
                    ient.interpolate.zerosize.fill.html
        OS/Version: Unspecified
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Canvas
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: rashmi.s2 at samsung.com


Function prototype :- CanvasRenderingContext2D::createLinearGradient(float x0, float y0, float x1, float y1, ExceptionCode& ec)

The HTML5 spec (http://www.whatwg.org/specs/web-apps/current-work/#dom-context-2d-createlineargradient)says - "If x0 = x1 and y0 = y1, then the linear gradient must paint nothing."

Currently the functions fill(), fillText(), stroke(), strokeRect() and strokeText() are not checking this condition.

Failing W3C tests :-

http://w3c-test.org/html/tests/approved/canvas/2d.gradient.interpolate.zerosize.fill.html
http://w3c-test.org/html/tests/approved/canvas/2d.gradient.interpolate.zerosize.fillText.html
http://w3c-test.org/html/tests/approved/canvas/2d.gradient.interpolate.zerosize.stroke.html        
http://w3c-test.org/html/tests/approved/canvas/2d.gradient.interpolate.zerosize.strokeRect.html        
http://w3c-test.org/html/tests/approved/canvas/2d.gradient.interpolate.zerosize.strokeText.html

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list