[Webkit-unassigned] [Bug 193039] New: Standardize rounding of percentage rgb() alpha values

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 26 12:08:59 PST 2018


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

            Bug ID: 193039
           Summary: Standardize rounding of percentage rgb() alpha values
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: simon.fraser at apple.com

We have:
        alphaComponent = static_cast<int>(clampTo<double>(alpha, 0.0, 1.0) * nextafter(256.0, 0.0));

Blink has:

    // W3 standard stipulates a 2.55 alpha value multiplication factor.
    int alpha_component = static_cast<int>(lround(clampTo<double>(alpha, 0.0, 1.0) * 255.0));

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20181226/8d47a820/attachment.html>


More information about the webkit-unassigned mailing list