<?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>125842</bug_id>
          
          <creation_ts>2013-12-17 00:00:52 -0800</creation_ts>
          <short_desc>Input type=search|color doesn&apos;t respect dir=RTL</short_desc>
          <delta_ts>2023-12-18 01:24:13 -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>Forms</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></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="Ryosuke Niwa">rniwa</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>akeerthi</cc>
    
    <cc>annevk</cc>
    
    <cc>ap</cc>
    
    <cc>mitz</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>rniwa</cc>
    
    <cc>roger_fong</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>960426</commentid>
    <comment_count>0</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2013-12-17 00:00:52 -0800</bug_when>
    <thetext>https://code.google.com/p/chromium/issues/detail?id=232333

Steps to reproduce the problem:
New HTML input elements fails on working (to be flipped) on RTL pages. 

Input type=&quot;search&quot;:
data:text/html,&lt;input type=&quot;search&quot; value=&quot;LTR&quot;&gt;&lt;br/&gt;&lt;input type=&quot;search&quot; value=&quot;RTL&quot; dir=&quot;RTL&quot;&gt;

Input type=&quot;search&quot; results:
data:text/html,&lt;input type=&quot;search&quot; value=&quot;LTR&quot; results&gt;&lt;br/&gt;&lt;input type=&quot;search&quot; value=&quot;RTL&quot; results dir=&quot;RTL&quot;&gt;

Input type=&quot;date&quot;:
data:text/html,&lt;input type=&quot;date&quot;&gt;&lt;br/&gt;&lt;input type=&quot;date&quot; dir=&quot;RTL&quot;&gt;

Input type=&quot;color&quot;:
data:text/html,&lt;input type=&quot;color&quot; list=&quot;color-datalist&quot; dir=&quot;RTL&quot;&gt;

What is the expected behavior?
Flipping UI elements is expected, same other input elements like type=&quot;number&quot;:
data:text/html,&lt;input type=&quot;number&quot; value=&quot;1&quot;&gt;&lt;br/&gt;&lt;input type=&quot;number&quot; value=&quot;1&quot; style=&quot;direction: rtl&quot;&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>960427</commentid>
    <comment_count>1</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2013-12-17 00:01:11 -0800</bug_when>
    <thetext>There has been some attempts to fix this problem on Blink but they have all been reverted.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1975173</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-09-02 06:12:52 -0700</bug_when>
    <thetext>This one is strange:

data:text/html,&lt;input type=&quot;date&quot;&gt;&lt;br/&gt;&lt;input type=&quot;date&quot; dir=&quot;RTL&quot;&gt;

^ Chrome show dd/mm/yyyy for both irrespective of LTR or RTL and show &apos;calendar&apos; picker icon on right side. While Firefox do move icon but keep placeholder &apos;dd/mm/yyyy&apos; same.

In case of Safari Technology Preview 177, we switch &apos;dd/mm/yyyy&apos; with &apos;yyyy/mm/dd&apos; for RTL.

I think in other cases, we are respecting &apos;RTL&apos; and matching other browsers.

@Aditya &amp; @Ryosuke - any input?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2000339</commentid>
    <comment_count>3</comment_count>
    <who name="Anne van Kesteren">annevk</who>
    <bug_when>2023-12-18 01:24:13 -0800</bug_when>
    <thetext>These all look correct to me.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>