<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>193039</bug_id>
          
          <creation_ts>2018-12-26 12:08:59 -0800</creation_ts>
          <short_desc>Standardize rounding of percentage rgb() alpha values</short_desc>
          <delta_ts>2022-10-03 12:08:12 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=192321</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=193038</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1490826</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2018-12-26 12:08:59 -0800</bug_when>
    <thetext>We have:
        alphaComponent = static_cast&lt;int&gt;(clampTo&lt;double&gt;(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&lt;int&gt;(lround(clampTo&lt;double&gt;(alpha, 0.0, 1.0) * 255.0));</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1902495</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-09-30 15:31:03 -0700</bug_when>
    <thetext>@Simon - I am only able to find four references to &quot;alphaComponent&quot; in Webkit GitHub, while noticed that these clean-up patches landed in Webkit in 2020:

https://github.com/WebKit/WebKit/commit/1a972b5062db8b61e5217bd35986f8dbdd36b75e

https://github.com/WebKit/WebKit/commit/65cd1e76a0bd628e1cd2109a0dd8bb7d9000b86c

https://github.com/WebKit/WebKit/commit/76dea7243010f7a3aada8d7f42ad336d6ca153ba

https://github.com/WebKit/WebKit/commit/1cf4a24fb0220174c7db4d6e5e3b245cc86e8f07

Do we need to do something more here?

If it has been resolved, can we mark this and &quot;See Also&quot; related bug as &quot;RESOLVED CONFIGURATION CHANGED&quot;? Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1902902</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-10-03 12:08:12 -0700</bug_when>
    <thetext>I believe this has been resolved.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>