<?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>303544</bug_id>
          
          <creation_ts>2025-12-04 05:31:42 -0800</creation_ts>
          <short_desc>overflow: clip doesn&apos;t work on inline elements</short_desc>
          <delta_ts>2025-12-21 06:21:17 -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>Layout and Rendering</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <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="Emilio Cobos Álvarez (:emilio)">emilio</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</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>2163207</commentid>
    <comment_count>0</comment_count>
    <who name="Emilio Cobos Álvarez (:emilio)">emilio</who>
    <bug_when>2025-12-04 05:31:42 -0800</bug_when>
    <thetext>Test-case:

data:text/html,&lt;span style=&quot;overflow: clip&quot;&gt;ABC &lt;span style=&quot;display: inline-block; height: 50px; width: 50px; background: green; vertical-align: bottom&quot;&gt;&lt;/span&gt;&lt;/span&gt;

The green square should be clipped to the inline&apos;s box.

Firefox is correct. Chrome has the same issue: https://issues.chromium.org/issues/465987920</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2165087</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2025-12-11 05:32:12 -0800</bug_when>
    <thetext>&lt;rdar://problem/166296784&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2167582</commentid>
    <comment_count>2</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2025-12-20 15:50:16 -0800</bug_when>
    <thetext>I didn&apos;t know overflow clip applied to inline boxes. Do you mind linking to the spec where it says that?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2167654</commentid>
    <comment_count>3</comment_count>
    <who name="Emilio Cobos Álvarez (:emilio)">emilio</who>
    <bug_when>2025-12-21 04:15:17 -0800</bug_when>
    <thetext>Yeah I guess per spec it shouldn&apos;t since https://drafts.csswg.org/css-overflow-3/#propdef-overflow-y has:

&gt; block containers [CSS2], flex containers [CSS3-FLEXBOX], grid containers [CSS3-GRID-LAYOUT] 

However that predates overflow: clip. Anyhow, I filed https://github.com/w3c/csswg-drafts/issues/13257 to discuss it on the spec side.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2167660</commentid>
    <comment_count>4</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2025-12-21 06:21:17 -0800</bug_when>
    <thetext>👍</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>