<?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>228143</bug_id>
          
          <creation_ts>2021-07-21 02:27:18 -0700</creation_ts>
          <short_desc>AX: CSS outline clipping when elements are resized in CSS</short_desc>
          <delta_ts>2026-03-20 07:34:41 -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 14</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>macOS 10.15</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</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="Dave House">davehouse</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>annevk</cc>
    
    <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>1778383</commentid>
    <comment_count>0</comment_count>
    <who name="Dave House">davehouse</who>
    <bug_when>2021-07-21 02:27:18 -0700</bug_when>
    <thetext>When an element such as a link has an outline defined in CSS (for example as a :focus state) and that element has also been resized through bolding or increasing the font size the outline seems to clip based on the original font size. If you zoom the browser 2-3 times it triggers some kind of repaint and the outline appears.

The only way I have managed to get an outline to render properly in Safari is to add `overflow: auto` to the element which seems to force the outline to render correctly.

Simplified test case here:

https://codepen.io/iknowdavehouse/pen/wvdqdba</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1778384</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-07-21 02:27:29 -0700</bug_when>
    <thetext>&lt;rdar://problem/80887280&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1779031</commentid>
    <comment_count>2</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2021-07-23 04:35:52 -0700</bug_when>
    <thetext>Some layout/paint invalidation bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2192062</commentid>
    <comment_count>3</comment_count>
    <who name="Anne van Kesteren">annevk</who>
    <bug_when>2026-03-20 07:34:41 -0700</bug_when>
    <thetext>It seems this got fixed at some point.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>