<?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>292226</bug_id>
          
          <creation_ts>2025-04-28 16:19:08 -0700</creation_ts>
          <short_desc>Extended colors should be clamped so they look the same in SDR and HDR layers</short_desc>
          <delta_ts>2025-07-11 13:21:25 -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>Images</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=295430</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Said Abou-Hallawa">sabouhallawa</reporter>
          <assigned_to name="Matt Woodrow">mattwoodrow</assigned_to>
          <cc>sabouhallawa</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2113703</commentid>
    <comment_count>0</comment_count>
      <attachid>475068</attachid>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2025-04-28 16:19:08 -0700</bug_when>
    <thetext>Created attachment 475068
test case

1. Enable Support HDR images 
2. Open the attached test case

Result: The background extended color `color(srgb 5 5 5)` looks brighter in the HDR layer. But the same extended color looks clamped in the SDR layer.
Expected: The extended colors should be displayed the same regardless of the HDR-ness of the layer.

Ideally an HDR layer should be created if any extended color is going to be displayed in this layer. Till this happens, extended colors will be clamped.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2113704</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-04-28 16:19:18 -0700</bug_when>
    <thetext>&lt;rdar://problem/150231788&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2113707</commentid>
    <comment_count>2</comment_count>
    <who name="Said Abou-Hallawa">sabouhallawa</who>
    <bug_when>2025-04-28 16:22:34 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/44641</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2126901</commentid>
    <comment_count>3</comment_count>
    <who name="Matt Woodrow">mattwoodrow</who>
    <bug_when>2025-06-30 19:36:44 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/47418</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2127805</commentid>
    <comment_count>4</comment_count>
    <who name="Matt Woodrow">mattwoodrow</who>
    <bug_when>2025-07-03 21:03:32 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/47595</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2129417</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-07-11 13:21:23 -0700</bug_when>
    <thetext>Committed 297279@main (fd22b8420d86): &lt;https://commits.webkit.org/297279@main&gt;

Reviewed commits have been landed. Closing PR #47595 and removing active labels.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>475068</attachid>
            <date>2025-04-28 16:19:08 -0700</date>
            <delta_ts>2025-04-28 16:19:08 -0700</delta_ts>
            <desc>test case</desc>
            <filename>test-hdr-images-2.html</filename>
            <type>text/html</type>
            <size>435</size>
            <attacher name="Said Abou-Hallawa">sabouhallawa</attacher>
            
              <data encoding="base64">PHN0eWxlPgogICAgLmJveCB7CiAgICAgICAgcG9zaXRpb246IGZpeGVkOwogICAgICAgIGJvcmRl
cjogMzBweCBzb2xpZCBncmVlbjsKICAgICAgICBwYWRkaW5nOiAzMHB4OwogICAgICAgIGJhY2tn
cm91bmQtY29sb3I6IGNvbG9yKHNyZ2IgNSA1IDUpOwogICAgfQo8L3N0eWxlPgo8Ym9keT4KICAg
IDxkaXYgY2xhc3M9ImJveCIgc3R5bGU9InRvcDogNDBweDsgbGVmdDogNDBweDsiPgogICAgICAg
IDxpbWcgc3JjPSJodHRwczovL2NjYW1lcm9uLWNocm9taXVtLmdpdGh1Yi5pby9oZHItanBlZy9w
ZXNjYXJpZWxsbzAtaGxnLmF2aWYiIHdpZHRoPSIzMDBweCI+CiAgICA8L2Rpdj4KICAgIDxkaXYg
Y2xhc3M9ImJveCIgc3R5bGU9InRvcDogNDBweDsgbGVmdDogNDkwcHg7IHdpZHRoOiAzMDBweDsg
aGVpZ2h0OiA1MzBweDsiPgogICAgPC9kaXY+CjwvYm9keT4K
</data>

          </attachment>
      

    </bug>

</bugzilla>