<?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>228637</bug_id>
          
          <creation_ts>2021-07-30 06:40:08 -0700</creation_ts>
          <short_desc>Space too large when using icon font in ::after pseudo element</short_desc>
          <delta_ts>2021-08-27 01:17:12 -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>Text</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>macOS 11</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</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="literalPie">benjaminkindle</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>gsnedders</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1780750</commentid>
    <comment_count>0</comment_count>
      <attachid>434620</attachid>
    <who name="literalPie">benjaminkindle</who>
    <bug_when>2021-07-30 06:40:08 -0700</bug_when>
    <thetext>Created attachment 434620
Icon in ::after pseudo element

Safari has different behavior from other browsers when displaying an icon with a space in a ::after pseudo element. When there is an element with `::after { content: &apos; icon_name&apos;}`, most browsers add a small space before the icon, but Safari adds a large space.

This seems to only be the case when the icon font used has a &quot;zero&quot; character with a width (normally used for the &quot;ch&quot; unit).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1780764</commentid>
    <comment_count>1</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2021-07-30 07:06:01 -0700</bug_when>
    <thetext>What version/OS are you on, literalPie?

I can&apos;t reproduce this on macOS 12 with ToT WebKit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1780812</commentid>
    <comment_count>2</comment_count>
    <who name="literalPie">benjaminkindle</who>
    <bug_when>2021-07-30 08:52:15 -0700</bug_when>
    <thetext>I am on macOS 11.5.1, and I am seeing the issue in 
* Safari Version 14.1.2 (16611.3.10.1.3) 
as well as 
* Safari Technology preview Release 128 (Safari 15.0, WebKit 16612.1.22.11.3)

However, I just checked and I am _not_ seeing the issue in iOS 15 Beta 4, so maybe it is fixed in the beta OSes?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1782474</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-08-06 06:41:15 -0700</bug_when>
    <thetext>&lt;rdar://problem/81614996&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1787971</commentid>
    <comment_count>4</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2021-08-27 01:17:12 -0700</bug_when>
    <thetext>I can&apos;t reproduce this either. I guess this should be marked as configuration changed.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>434620</attachid>
            <date>2021-07-30 06:40:08 -0700</date>
            <delta_ts>2021-07-30 06:40:08 -0700</delta_ts>
            <desc>Icon in ::after pseudo element</desc>
            <filename>index.html</filename>
            <type>text/html</type>
            <size>740</size>
            <attacher name="literalPie">benjaminkindle</attacher>
            
              <data encoding="base64">PCEtLSBUaGVyZSBhcmUgdHdvIGVsZW1lbnRzIHdpdGggdGhlIHRlc3QgInRlc3QiIGZvbGxvd2Vk
IGJ5IGEgc3BhY2UgYW5kIGFuIGljb24uIFRoZSBzZWNvbmQgZWxlbWVudCB1c2VzIHRoZSA6OmFm
dGVyIHBzZXVkby1lbGVtZW50IHRvIGFjY29tcGxpc2ggdGhpcy4KSW4gbW9zdCBicm93c2Vycywg
dGhlIHR3byBlbGVtZW50cyBkaXNwbGF5IHRoZSBzYW1lLiBJbiBTYWZhcmksIHRoZXJlIGlzIGEg
bGFyZ2VyIHNwYWNlIGJldHdlZW4gdGhlIHRleHQgYW5kIHRoZSBpY29uLiAtLT4KPCFkb2N0eXBl
IGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KPGhlYWQ+CiAgPG1ldGEgY2hhcnNldD0idXRmLTgiPgog
IDx0aXRsZT5EZW1vPC90aXRsZT4KICA8YmFzZSBocmVmPSIvIj4KCiAgPGxpbmsgaHJlZj0iaHR0
cHM6Ly9mb250cy5nb29nbGVhcGlzLmNvbS9pY29uP2ZhbWlseT1NYXRlcmlhbCtJY29ucyIKICAg
ICAgcmVsPSJzdHlsZXNoZWV0Ij4KPC9oZWFkPgo8Ym9keT4KICA8c3Bhbj4KICAgIHRlc3QKICAg
IDxzcGFuIHN0eWxlPSJmb250LWZhbWlseTogJ01hdGVyaWFsIEljb25zJzsiPiBsYXVuY2g8L3Nw
YW4+CiAgPC9zcGFuPgogIDxkaXYgY2xhc3M9Imljb24tYWZ0ZXIiPnRlc3Q8L2Rpdj4KPC9ib2R5
Pgo8c3R5bGU+CiAgLmljb24tYWZ0ZXI6OmFmdGVyIHsKICAgIGNvbnRlbnQ6ICcgbGF1bmNoJzsK
ICAgIGZvbnQtZmFtaWx5OiAnTWF0ZXJpYWwgSWNvbnMnOwogIH0KPC9zdHlsZT4KPC9odG1sPgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>