<?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>304981</bug_id>
          
          <creation_ts>2026-01-06 02:10:56 -0800</creation_ts>
          <short_desc>CSS View Transitions causes rendering issues with non-srgb colors.</short_desc>
          <delta_ts>2026-03-27 01:25:47 -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>Layout and Rendering</component>
          <version>Safari 26</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=302256</see_also>
          <bug_file_loc>https://issues.romanczerki.es/view-transitions/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Roman Czerkies">dev</reporter>
          <assigned_to name="Matt Woodrow">mattwoodrow</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>graouts</cc>
    
    <cc>mattwoodrow</cc>
    
    <cc>ntim</cc>
    
    <cc>paulrhomberg01</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>2169600</commentid>
    <comment_count>0</comment_count>
    <who name="Roman Czerkies">dev</who>
    <bug_when>2026-01-06 02:10:56 -0800</bug_when>
    <thetext>When using CSS View Transitions with:

```css
@view-transition {
    navigation: auto;
}
```

Safari shows incorrect rendering during the crossfade phase, especially on page load or reload.
Some visual calculations appear to be applied late, after the transition has already started.


- Scroll-driven animations
Scroll-driven animations combined with Container Query–based styles render late on reload, causing visible jumps during the crossfade.

Reproduction page: https://issues.romanczerki.es/view-transitions/scroll-driven.html


- Alpha transparency
Elements using alpha colors (rgba(), oklch() / alpha) briefly render incorrectly during the crossfade, then snap to the correct value when reloading the page.

Reproduction page: https://issues.romanczerki.es/view-transitions/alpha.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2169658</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2026-01-06 10:55:06 -0800</bug_when>
    <thetext>What am I looking for on https://issues.romanczerki.es/view-transitions/scroll-driven.html? Does the repro involve clicking the buttons, or just reloading the page?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2169659</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-01-06 10:55:12 -0800</bug_when>
    <thetext>&lt;rdar://problem/167634138&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2169697</commentid>
    <comment_count>3</comment_count>
    <who name="Roman Czerkies">dev</who>
    <bug_when>2026-01-06 13:01:32 -0800</bug_when>
    <thetext>(In reply to Simon Fraser (smfr) from comment #1)
&gt; What am I looking for on
&gt; https://issues.romanczerki.es/view-transitions/scroll-driven.html? Does the
&gt; repro involve clicking the buttons, or just reloading the page?

Sorry for the lack of explanation in the initial report!
To reproduce the issue, you need to click the first &quot;Reload the page&quot; link on the page. This triggers a navigation, activating `@view-transition { navigation: auto }`.
The rendering of alpha-transparent elements and scroll-driven animations may appear incorrect during / after the crossfade.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2175832</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2026-01-28 09:33:08 -0800</bug_when>
    <thetext>Maybe the snapshots are SRGB?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2177574</commentid>
    <comment_count>5</comment_count>
    <who name="Roman Czerkies">dev</who>
    <bug_when>2026-02-03 07:16:12 -0800</bug_when>
    <thetext>(In reply to Simon Fraser (smfr) from comment #4)
&gt; Maybe the snapshots are SRGB?

Is that a question for me?
I guess it&apos;s not only a color problem, regard of the &quot;jump&quot; in CSS View Transitions detection at reload (https://issues.romanczerki.es/view-transitions/scroll-driven.html)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2193342</commentid>
    <comment_count>6</comment_count>
    <who name="Matt Woodrow">mattwoodrow</who>
    <bug_when>2026-03-24 17:16:37 -0700</bug_when>
    <thetext>This is bit confusing, since there&apos;s two separate issues here.

The scroll driven animations issue has already been fixed, in bug 307782.

Changing the title of this bug to just reflect the remaining issue, drawing is incorrect with colors outside of the sRGB gamut.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2193375</commentid>
    <comment_count>7</comment_count>
    <who name="Matt Woodrow">mattwoodrow</who>
    <bug_when>2026-03-24 18:14:08 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/61301</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2193726</commentid>
    <comment_count>8</comment_count>
    <who name="Matt Woodrow">mattwoodrow</who>
    <bug_when>2026-03-25 20:07:51 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/61370</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2194040</commentid>
    <comment_count>9</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-03-26 12:22:11 -0700</bug_when>
    <thetext>Committed 310012@main (8198a35ec20a): &lt;https://commits.webkit.org/310012@main&gt;

Reviewed commits have been landed. Closing PR #61370 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2194231</commentid>
    <comment_count>10</comment_count>
    <who name="Roman Czerkies">dev</who>
    <bug_when>2026-03-27 01:25:47 -0700</bug_when>
    <thetext>(In reply to Matt Woodrow from comment #6)
&gt; This is bit confusing, since there&apos;s two separate issues here.
&gt; 
&gt; The scroll driven animations issue has already been fixed, in bug 307782.
&gt; 
&gt; Changing the title of this bug to just reflect the remaining issue, drawing
&gt; is incorrect with colors outside of the sRGB gamut.

Thanks for the fix and for clarifying the scope of the issues, much appreciated.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>