Bug 137799 - clearing html direction style doesn't restore it to ltr
Summary: clearing html direction style doesn't restore it to ltr
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.9
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-16 19:04 PDT by Adam Comella
Modified: 2016-04-25 07:10 PDT (History)
2 users (show)

See Also:


Attachments
Repro page (1.06 KB, text/html)
2014-10-16 19:04 PDT, Adam Comella
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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