<?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>181504</bug_id>
          
          <creation_ts>2018-01-10 16:00:15 -0800</creation_ts>
          <short_desc>Font scaling at whole pixel increments causes rendering inconsistencies for vw units</short_desc>
          <delta_ts>2023-10-02 18:18:23 -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 15</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>46987</dup_id>
          
          <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="Michael Argentini">michael</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>bfulgham</cc>
    
    <cc>mmaxfield</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>1387919</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Argentini">michael</who>
    <bug_when>2018-01-10 16:00:15 -0800</bug_when>
    <thetext>Fonts are only scaled using whole pixel increments as opposed to fractional (sub) pixels. This causes jumpy/stuttering text scaling and inconsistent text wrapping when using vw and rem units. A simple example of this can be viewed by visiting the URL below in Safari and any other major browser, like Chrome, Firefox, etc. Resize the window widths and watch the scaling of text. Safari renders text that stutters and wraps at arbitrary widths due to the whole pixel rounding. Other browsers do not, and they remain performant. 

This is a request to favor rendering integrity and compatibility across browser over the current approach of maximizing cache hits.

http://sfumato.design

Thanks for listening, and for a great rendering engine! But please change this!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1388357</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-01-11 11:54:36 -0800</bug_when>
    <thetext>&lt;rdar://problem/36445898&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1388463</commentid>
    <comment_count>2</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2018-01-11 14:15:23 -0800</bug_when>
    <thetext>Inside FontDescription.h:

unsigned computedPixelSize() const { return unsigned(m_computedSize + 0.5f); }</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1390838</commentid>
    <comment_count>3</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2018-01-18 22:26:15 -0800</bug_when>
    <thetext>&lt;rdar://problem/28543347&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1487912</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Argentini">michael</who>
    <bug_when>2018-12-14 07:26:08 -0800</bug_when>
    <thetext>Any news on this issue? Now that Microsoft will be using Chromium for Edge, it seems that all other major browsers will be handling font size changes at fractional pixels and rendering pages consistently with each other at any size. We need to give people reasons to keep using webkit/Safari!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1848384</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Argentini">michael</who>
    <bug_when>2022-03-04 13:27:12 -0800</bug_when>
    <thetext>Any news on this issue? Now that Microsoft has been using Chromium for Edge, it seems that all other major browsers will be handling font size changes at fractional pixels and rendering pages consistently with each other at any size. We need to give people reasons to keep using webkit/Safari!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1981930</commentid>
    <comment_count>6</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-10-02 18:18:23 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 46987 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>