Index: third_party/WebKit/LayoutTests/fast/forms/textarea/textarea-dir-auto-with-placeholder.html |
diff --git a/third_party/WebKit/LayoutTests/fast/forms/textarea/textarea-dir-auto-with-placeholder.html b/third_party/WebKit/LayoutTests/fast/forms/textarea/textarea-dir-auto-with-placeholder.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a97f68d160720acb2d44153466aaaffca304a0e7 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/forms/textarea/textarea-dir-auto-with-placeholder.html |
@@ -0,0 +1,12 @@ |
+<!DOCTYPE html> |
+<meta charset="utf-8"> |
+<body> |
+<script src="../../../resources/testharness.js"></script> |
+<script src="../../../resources/testharnessreport.js"></script> |
+<textarea dir="auto" placeholder="LTR placeholder string">ע</textarea> |
+<script> |
+test(() => { |
+ assert_equals(getComputedStyle(document.querySelector('textarea'), '').direction, 'rtl'); |
+}, 'Placeholder\'s direction shouldn\'t affect TEXTAREA direction.'); |
+</script> |
+</body> |