Bug 137799

Summary: clearing html direction style doesn't restore it to ltr
Product: WebKit Reporter: Adam Comella <rigdern>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: mitz, tonikitoo
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.9   
Attachments:
Description Flags
Repro page none

Description Adam Comella 2014-10-16 19:04:50 PDT
Created attachment 239988 [details]
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 ''
getComputedStyle(document.documentElement).direction is ltr

What went wrong?
The final direction is actually RTL.

The script outputs:
Switched to ''
getComputedStyle(document.documentElement).direction is rtl


This works in IE 11 and Firefox 32