<?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>191939</bug_id>
          
          <creation_ts>2018-11-24 01:56:17 -0800</creation_ts>
          <short_desc>*-opacity computed values should clamp between 0 and 1</short_desc>
          <delta_ts>2023-12-06 14:46:42 -0800</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>Safari 12</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=265967</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Willigers">ericwilligers</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>dino</cc>
    
    <cc>jonlee</cc>
    
    <cc>rniwa</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1481284</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Willigers">ericwilligers</who>
    <bug_when>2018-11-24 01:56:17 -0800</bug_when>
    <thetext>When the specified value is outside the range [0,1], Blink and Safari are currently not clamping the computed value of fill-opacity, flood-opacity, stop-opacity, stroke-opacity.

Edge and Firefox (and spec) are clamping the computed value to [0,1]

https://svgwg.org/svg2-draft/painting.html#FillOpacity
https://svgwg.org/svg2-draft/painting.html#StrokeOpacity
https://drafts.fxtf.org/filter-effects/#FloodOpacityProperty
Computed value:	the specified value converted to a number, clamped to the range [0,1]

https://svgwg.org/svg2-draft/single-page.html#pservers-StopOpacityProperty
Any values outside the range 0.0 (fully transparent) to 1.0 (fully opaque) must be clamped to this range.

Blink bug: https://bugs.chromium.org/p/chromium/issues/detail?id=908058

All browsers are clamping the computed value of opacity and shape-image-threshold.
http://jsfiddle.net/ericwilligers/zmgy8735/

(Blink and Safari and Firefox have different behavior when animating: https://github.com/w3c/csswg-drafts/issues/3340 )</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1496559</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Willigers">ericwilligers</who>
    <bug_when>2019-01-21 03:04:22 -0800</bug_when>
    <thetext>Blink (like Edge and Firefox) now clamps the computed value of *-opacity
https://wpt.fyi/results/svg/painting/parsing/stroke-opacity-computed.svg</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1496807</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-01-22 10:10:49 -0800</bug_when>
    <thetext>&lt;rdar://problem/47449828&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1876859</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-06-20 16:15:59 -0700</bug_when>
    <thetext>Based on attached &quot;JSFiddle&quot; in Comment 01, Safari 15.5 only differs on shape-image-threshold from other browsers (Chrome Canary 105 and Firefox Nightly 103). For all other tests, it is now consistent with other browsers.

I think separate bug can be raised for &quot;shape-image-threshold&quot; issue but I will leave it up to others to decide. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1938735</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-03-03 17:42:44 -0800</bug_when>
    <thetext>Blink Commit - https://chromium.googlesource.com/chromium/src.git/+/7357da2a70de65bf267e8da97dc31e5e96baee20</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1997518</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-12-06 14:46:42 -0800</bug_when>
    <thetext>closing this and raising new for &apos;shape-image-threshold&apos;. Look into &apos;See Also&apos;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>