<?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>198908</bug_id>
          
          <creation_ts>2019-06-16 20:20:37 -0700</creation_ts>
          <short_desc>Text caret renders incorrectly and is hard to use on iOS when text is rotated</short_desc>
          <delta_ts>2025-03-05 04:55:55 -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>HTML Editing</component>
          <version>Safari 12</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>CanvaBug, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Xidorn Quan">xidorn-webkit</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>fantasai.bugs</cc>
    
    <cc>fmuaddib</cc>
    
    <cc>megan_gardner</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1545190</commentid>
    <comment_count>0</comment_count>
      <attachid>372230</attachid>
    <who name="Xidorn Quan">xidorn-webkit</who>
    <bug_when>2019-06-16 20:20:37 -0700</bug_when>
    <thetext>Created attachment 372230
testcase

Steps to reproduce:
1. open the testcase on iOS Safari
2. try to select different parts of the text and move the caret

Expected result:
the caret and selection area should be rotated as the text, and the caret can be moved along the rotated direction

Actual result:
the caret and selection area are still vertical, and the caret is hard to move.


The testcase uses 45deg. It would even be worse if the rotation is changed to 90deg.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1545197</commentid>
    <comment_count>1</comment_count>
    <who name="Xidorn Quan">xidorn-webkit</who>
    <bug_when>2019-06-16 21:03:35 -0700</bug_when>
    <thetext>Related bug reports:
* Firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=1559739
* Chrome: https://bugs.chromium.org/p/chromium/issues/detail?id=974617</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1545218</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-06-17 01:38:23 -0700</bug_when>
    <thetext>&lt;rdar://problem/51797960&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1545303</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2019-06-17 10:41:47 -0700</bug_when>
    <thetext>How common is editing rotated text? Was this a bug on a real site?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1545546</commentid>
    <comment_count>4</comment_count>
    <who name="Xidorn Quan">xidorn-webkit</who>
    <bug_when>2019-06-17 21:41:07 -0700</bug_when>
    <thetext>&gt; How common is editing rotated text? Was this a bug on a real site?

This is a bug on real site. We (Canva) allows users to rotate text in their designs.

Our native mobile app tries to undo the rotation during editing in order to work around similar bug on native platforms. When we are porting things to web, we hit the same problem here.

We don&apos;t currently have data about how frequent our users rotate text, and edit after the text is rotated.

My personal guess would be that, moderate degrees (30°, 45°, etc.) may not be very common, but there may be more people who want to rotate ±90° so that horizontal text becomes vertical. This is unfortunately the worst case on iOS at the moment. I don&apos;t have any data to back that either, though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2100502</commentid>
    <comment_count>5</comment_count>
    <who name="fantasai">fantasai.bugs</who>
    <bug_when>2025-03-04 20:55:55 -0800</bug_when>
    <thetext>This appears to have been fixed at some point.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>372230</attachid>
            <date>2019-06-16 20:20:37 -0700</date>
            <delta_ts>2019-06-16 20:20:37 -0700</delta_ts>
            <desc>testcase</desc>
            <filename>rotated-text-editing.html</filename>
            <type>text/html</type>
            <size>339</size>
            <attacher name="Xidorn Quan">xidorn-webkit</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxtZXRhIG5hbWU9InZpZXdwb3J0IiBjb250ZW50PSJ3aWR0aD1kZXZp
Y2Utd2lkdGgiPgo8c3R5bGU+Ci5vdXRlciB7CiAgd2lkdGg6IDIwMHB4OwogIHBhZGRpbmc6IDEw
MHB4IDA7Cn0KLmlubmVyIHsKICB3aWR0aDogMTAwcHg7CiAgdmVydGljYWwtYWxpZ246IG1pZGRs
ZTsKICB0cmFuc2Zvcm0tb3JpZ2luOiA1MCUgNTAlOwogIHRyYW5zZm9ybTogcm90YXRlKDQ1ZGVn
KTsKICBvdXRsaW5lOiBub25lOwp9Cjwvc3R5bGU+CjxkaXYgY2xhc3M9Im91dGVyIj4KPGRpdiBj
b250ZW50ZWRpdGFibGUgY2xhc3M9ImlubmVyIj5oZWxsbyB3b3JsZDwvZGl2Pgo8L2Rpdj4K
</data>

          </attachment>
      

    </bug>

</bugzilla>