<?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>130378</bug_id>
          <alias>rem-resize-jank</alias>
          <creation_ts>2014-03-17 18:20:59 -0700</creation_ts>
          <short_desc>Resizing around responsive boundaries when using rem unit causes jank/jitter</short_desc>
          <delta_ts>2017-08-09 11:53:18 -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>528+ (Nightly build)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.9</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://samhuri.net/f/grid-bug.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sami Samhuri">sami.samhuri</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>fluehrm</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>991493</commentid>
    <comment_count>0</comment_count>
      <attachid>226994</attachid>
    <who name="Sami Samhuri">sami.samhuri</who>
    <bug_when>2014-03-17 18:20:59 -0700</bug_when>
    <thetext>Created attachment 226994
test case

When the font-size is defined on the html element and sizes are specified in rems, Safari 7 flickers the sizes back and forth when resizing around each responsive boundary.

Video: http://youtu.be/_36K18JheP4

Steps to reproduce

1. Visit http://samhuri.net/f/grid-bug.html in Safari 7 on a Mac.

2. Resize your browser window enough to cross a responsive boundary, 40rem or 64rem in this case.

3. Observe the jank

I fear I have not described the problem well, please see the attached test case. It should be clear. Let me know if I can help with anything!

-s</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>991542</commentid>
    <comment_count>1</comment_count>
    <who name="Sami Samhuri">sami.samhuri</who>
    <bug_when>2014-03-17 21:27:38 -0700</bug_when>
    <thetext>I should note that when I define the font sizes on the body element instead of the html element, no such flicker occurs. You can see that in action at http://samhuri.net. Not sure if that&apos;s a useful tidbit or not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1337067</commentid>
    <comment_count>2</comment_count>
    <who name="MF">fluehrm</who>
    <bug_when>2017-08-09 11:53:18 -0700</bug_when>
    <thetext>Any update on this? This bug is still a problem on Safari 10.1.2. Combined with transitions and other things, it can destroy the usability of a website.
(Fortunately, Sami&apos;s suggestion about moving the font sizes to `body` works. You&apos;re a lifesaver, Sami!)</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>226994</attachid>
            <date>2014-03-17 18:20:59 -0700</date>
            <delta_ts>2014-03-17 18:20:59 -0700</delta_ts>
            <desc>test case</desc>
            <filename>grid-bug.html</filename>
            <type>text/html</type>
            <size>589</size>
            <attacher name="Sami Samhuri">sami.samhuri</attacher>
            
              <data encoding="base64">PCFkb2N0eXBlIGh0bWw+CjxodG1sPgoKPGhlYWQ+CiAgPG1ldGEgY2hhcnNldD0idXRmLTgiPgoK
ICA8dGl0bGU+amFuazwvdGl0bGU+CgogIDxzdHlsZT4KCiAgICBodG1sIHsgZm9udC1zaXplOiAx
MDAlIH0KCiAgICBAbWVkaWEgKG1pbi13aWR0aDogNDByZW0pIHsKICAgICAgaHRtbCB7IGZvbnQt
c2l6ZTogMTEyJSB9CiAgICB9CgogICAgQG1lZGlhIChtaW4td2lkdGg6IDY0cmVtKSB7CiAgICAg
IGh0bWwgeyBmb250LXNpemU6IDEyMCUgfQogICAgfQoKICA8L3N0eWxlPgo8L2hlYWQ+Cgo8Ym9k
eT4KCiAgPGgxPnJlbS1zaXplZCBlbGVtZW50cyBhbmQgZm9udHMgZmxpY2tlciB3aGVuIHJlc2l6
aW5nIGFyb3VuZCB0aGUgbWFya2VkIHdpZHRoczwvaDE+CgogIDxkaXYgc3R5bGU9IndpZHRoOiA2
NHJlbTsgYmFja2dyb3VuZC1jb2xvcjogI2FkYSI+CiAgICA8cCBhbGlnbj0iY2VudGVyIj42NHJl
bTwvcD4KCiAgICA8ZGl2IHN0eWxlPSJ3aWR0aDogNDByZW07IGJhY2tncm91bmQtY29sb3I6ICNm
YWEiPgogICAgICA8cCBhbGlnbj0iY2VudGVyIj40MHJlbTwvcD4KICAgIDwvZGl2PgogIDwvZGl2
PgoKPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>