<?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>137799</bug_id>
          
          <creation_ts>2014-10-16 19:04:50 -0700</creation_ts>
          <short_desc>clearing html direction style doesn&apos;t restore it to ltr</short_desc>
          <delta_ts>2016-04-25 07:10:37 -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</rep_platform>
          <op_sys>OS X 10.9</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></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="Adam Comella">rigdern</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>mitz</cc>
    
    <cc>tonikitoo</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1042267</commentid>
    <comment_count>0</comment_count>
      <attachid>239988</attachid>
    <who name="Adam Comella">rigdern</who>
    <bug_when>2014-10-16 19:04:50 -0700</bug_when>
    <thetext>Created attachment 239988
Repro page

Steps to reproduce the problem:
1. Open toggleRTL.html (attached)

What is the expected behavior?
The final direction should be LTR.

The script should output:
Switched to &apos;&apos;
getComputedStyle(document.documentElement).direction is ltr

What went wrong?
The final direction is actually RTL.

The script outputs:
Switched to &apos;&apos;
getComputedStyle(document.documentElement).direction is rtl


This works in IE 11 and Firefox 32</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>239988</attachid>
            <date>2014-10-16 19:04:50 -0700</date>
            <delta_ts>2014-10-16 19:04:50 -0700</delta_ts>
            <desc>Repro page</desc>
            <filename>toggleRTL.html</filename>
            <type>text/html</type>
            <size>1082</size>
            <attacher name="Adam Comella">rigdern</attacher>
            
              <data encoding="base64">PCFkb2N0eXBlIGh0bWw+CjxodG1sPgo8aGVhZD4KICAgIDxtZXRhIGh0dHAtZXF1aXY9IlgtVUEt
Q29tcGF0aWJsZSIgY29udGVudD0iSUU9ZWRnZSIgLz4KICAgIDx0aXRsZT5Ub2dnbGUgUlRMPC90
aXRsZT4KICAgIDxzY3JpcHQ+CiAgICAgICAgZnVuY3Rpb24gaW5pdCgpIHsNCiAgICAgICAgICAg
IHZhciBvdXQgPSAiIjsNCg0KICAgICAgICAgICAgb3V0ICs9ICJnZXRDb21wdXRlZFN0eWxlKGRv
Y3VtZW50LmRvY3VtZW50RWxlbWVudCkuZGlyZWN0aW9uIGlzICIgKyBnZXRDb21wdXRlZFN0eWxl
KGRvY3VtZW50LmRvY3VtZW50RWxlbWVudCkuZGlyZWN0aW9uICsgIjxici8+PGJyLz4iOw0KDQog
ICAgICAgICAgICBkb2N1bWVudC5kb2N1bWVudEVsZW1lbnQuc3R5bGUuZGlyZWN0aW9uID0gInJ0
bCI7DQogICAgICAgICAgICBvdXQgKz0gIlN3aXRjaGVkIHRvICdydGwnLjxici8+IjsNCiAgICAg
ICAgICAgIG91dCArPSAiZ2V0Q29tcHV0ZWRTdHlsZShkb2N1bWVudC5kb2N1bWVudEVsZW1lbnQp
LmRpcmVjdGlvbiBpcyAiICsgZ2V0Q29tcHV0ZWRTdHlsZShkb2N1bWVudC5kb2N1bWVudEVsZW1l
bnQpLmRpcmVjdGlvbiArICI8YnIvPjxici8+IjsNCg0KICAgICAgICAgICAgZG9jdW1lbnQuZG9j
dW1lbnRFbGVtZW50LnN0eWxlLmRpcmVjdGlvbiA9ICIiOw0KICAgICAgICAgICAgb3V0ICs9ICJT
d2l0Y2hlZCB0byAnJzxici8+IjsNCiAgICAgICAgICAgIG91dCArPSAiZ2V0Q29tcHV0ZWRTdHls
ZShkb2N1bWVudC5kb2N1bWVudEVsZW1lbnQpLmRpcmVjdGlvbiBpcyA8Yj4iICsgZ2V0Q29tcHV0
ZWRTdHlsZShkb2N1bWVudC5kb2N1bWVudEVsZW1lbnQpLmRpcmVjdGlvbiArICI8L2I+PGJyLz4i
Ow0KICAgICAgICAgICAgb3V0ICs9ICJ2YWx1ZSBzaG91bGQgaGF2ZSBiZWVuIDxiPmx0cjwvYj4i
Ow0KDQogICAgICAgICAgICBkb2N1bWVudC5nZXRFbGVtZW50QnlJZCgib3V0cHV0IikuaW5uZXJI
VE1MID0gb3V0Ow0KICAgICAgICB9CiAgICA8L3NjcmlwdD4KPC9oZWFkPgo8Ym9keSBvbmxvYWQ9
ImluaXQoKTsiPgogICAgPGRpdiBpZD0ib3V0cHV0Ij48L2Rpdj4KPC9ib2R5Pgo8L2h0bWw+DQo=
</data>

          </attachment>
      

    </bug>

</bugzilla>