Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Unified Diff: LayoutTests/fast/forms/direction-in-case-of-invalid-dir-attribute.html

Issue 524593003: Resolve direction correctly when dir attribute is not in a defined state Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Splitting CL into 2 Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/forms/direction-in-case-of-invalid-dir-attribute.html
diff --git a/LayoutTests/fast/forms/direction-in-case-of-invalid-dir-attribute.html b/LayoutTests/fast/forms/direction-in-case-of-invalid-dir-attribute.html
new file mode 100644
index 0000000000000000000000000000000000000000..54e4ed78066bec5961f33590e8bff81ed06b8090
--- /dev/null
+++ b/LayoutTests/fast/forms/direction-in-case-of-invalid-dir-attribute.html
@@ -0,0 +1,24 @@
+<html>
tkent 2014/09/09 06:37:00 The CL is independent from forms. Probably this t
esprehn 2014/09/09 10:20:13 ditto.
Sunil Ratnu 2014/09/09 10:41:57 Done.
Sunil Ratnu 2014/09/09 10:41:57 Done.
+<body>
+This test checks that if an element has a parent element and the dir attribute
+is not in a defined state (i.e. it is not present or has an invalid value), the
+directionality of the element is the same as the element's parent element's
+directionality.
+<div dir='rtl'>
+ <textarea dir=''>RTL</textarea>
+</div>
+
+<div dir='rtl'>
+ <textarea dir='invalidDirName'>RTL</textarea>
+</div>
+
+<div dir='rtl'>
+ <input type='text' dir='' value='RTL'>
+</div>
+
+<div dir='rtl'>
+ <input type='text' dir='invalidDirName' value='RTL'>
+</div>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698