<?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>301398</bug_id>
          
          <creation_ts>2025-10-23 21:18:58 -0700</creation_ts>
          <short_desc>[HDR] IMG tag CSS features position and transform switch HDR JPEG with gainmap to SDR</short_desc>
          <delta_ts>2025-11-17 15:09:38 -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>Images</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Mac (Apple Silicon)</rep_platform>
          <op_sys>macOS 26</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=282299</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="isenberg">web</reporter>
          <assigned_to name="Simon Fraser (smfr)">simon.fraser</assigned_to>
          <cc>heycam</cc>
    
    <cc>sabouhallawa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2153917</commentid>
    <comment_count>0</comment_count>
    <who name="isenberg">web</who>
    <bug_when>2025-10-23 21:18:58 -0700</bug_when>
    <thetext>In current release Safari 26.0.1 of macOS 26 and also current Safari Technology Preview 230 on macOS 26, HDR gainmap JPGs are not shown in HDR and switch back to SDR when the img tag attributes position or transform are used. Chrome and Opera do show HDR with these attributes.

Example with failed HDR using attributes transform and position: https://areo.info/mars20/ecams/1662/tn/NLF_1662_0814484811_380ECM_N0791762NCAM00501_01_295J_calib01_areo.info.jpg.html

Example with working HDR without those attributes:
https://areo.info/mars20/ecams/1662/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2154051</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-10-24 09:41:40 -0700</bug_when>
    <thetext>&lt;rdar://problem/163347703&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2154174</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2025-10-24 16:12:58 -0700</bug_when>
    <thetext>This reproduces in a very simple test case with a relatively-positioned image. The detection code must be failing to traverse into the RenderLayer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2154195</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2025-10-24 20:31:10 -0700</bug_when>
    <thetext>&lt;rdar://156858374&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2154197</commentid>
    <comment_count>4</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2025-10-24 20:39:04 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/52982</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2154530</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2025-10-27 14:51:30 -0700</bug_when>
    <thetext>Committed 302200@main (52936d4f17f0): &lt;https://commits.webkit.org/302200@main&gt;

Reviewed commits have been landed. Closing PR #52982 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2154538</commentid>
    <comment_count>6</comment_count>
    <who name="isenberg">web</who>
    <bug_when>2025-10-27 14:59:53 -0700</bug_when>
    <thetext>Thanks! I&apos;ll try with the next safari tech preview release.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2159383</commentid>
    <comment_count>7</comment_count>
    <who name="isenberg">web</who>
    <bug_when>2025-11-17 15:09:38 -0800</bug_when>
    <thetext>With Safari Tech Preview 232 (WebKit 21624.1.2.19.2) the large images with those CSS features now display in HDR, thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>