<?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>273766</bug_id>
          
          <creation_ts>2024-05-06 05:06:14 -0700</creation_ts>
          <short_desc>[Skia] Fix failing layout tests related to blurred shadows</short_desc>
          <delta_ts>2024-05-13 05:07:03 -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>WPE WebKit</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>268972</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Pawel Lampe">plampe</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2033437</commentid>
    <comment_count>0</comment_count>
    <who name="Pawel Lampe">plampe</who>
    <bug_when>2024-05-06 05:06:14 -0700</bug_when>
    <thetext>Failing test cases:

fast/canvas/canvas-scale-shadowBlur.html
fast/canvas/canvas-strokePath-gradient-shadow.html
fast/canvas/canvas-strokeRect-alpha-shadow.html
fast/canvas/canvas-strokeRect-gradient-shadow.html

The above tests can be aligned this way:

diff --git a/LayoutTests/fast/canvas/canvas-strokeRect-gradient-shadow.html b/LayoutTests/fast/canvas/canvas-strokeRect-gradient-shadow.html
index 1aec50b1a419..0c19c84a4463 100644
--- a/LayoutTests/fast/canvas/canvas-strokeRect-gradient-shadow.html
+++ b/LayoutTests/fast/canvas/canvas-strokeRect-gradient-shadow.html
@@ -101,7 +102,7 @@ test(shouldBeAround, 300, 150, 255, 0, 0, 64);
 
 test(shouldBe, 400, 25,  0, 0, 0, 0);
 test(shouldBe, 525, 150, 0, 0, 0, 0);
-test(shouldBe, 400, 275, 0, 0, 0, 0);
+test(shouldBe, 400, 274, 0, 0, 0, 0);
 test(shouldBe, 275, 150, 0, 0, 0, 0);
 
 print(&apos; &apos;);
@@ -109,8 +110,8 @@ print(&apos;Verifying blurry shadow...&apos;);
 test(shouldBe, 400, 400, 0, 0, 0, 0);
 
 test(shouldBe, 400, 325, 0, 0, 0, 0);
-test(shouldBe, 475, 400, 0, 0, 0, 0);
-test(shouldBe, 400, 475, 0, 0, 0, 0);
+test(shouldBe, 474, 400, 0, 0, 0, 0);
+test(shouldBe, 400, 474, 0, 0, 0, 0);
 test(shouldBe, 325, 400, 0, 0, 0, 0);
 
 test(shouldBeAround, 400, 300, 255, 0, 0, 64);
@@ -119,7 +120,7 @@ test(shouldBeAround, 300, 400, 255, 0, 0, 64);
 test(shouldBeAround, 500, 400, 255, 0, 0, 64);
 
 test(shouldBe, 525, 400, 0, 0, 0, 0);
-test(shouldBe, 275, 400, 0, 0, 0, 0);
+test(shouldBe, 274, 400, 0, 0, 0, 0);
 
 print(&apos; &apos;);
 print(&apos;Verifying rotated alpha shadow...&apos;);

since in skia, the blur looks to be reaching 1px further than in cairo/CG. However, we need to make sure the https://www.w3.org/TR/css-backgrounds-3/#shadow-blur won&apos;t be invalidated after the tests are re-worked.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>