author Birunthan Mohanathas <>
Sun, 08 Dec 2013 21:52:54 -0500
changeset 159462 e0776db3b102510504fdcf57b7f65dfa1da3b46d
parent 87398 5a94531fb188847f0491c19ac49a8b0083f69c0a
permissions -rw-r--r--
Bug 713082 - Part 2: Rename Util.h to ArrayUtils.h. r=Waldo

<!DOCTYPE html>
  <meta charset="utf-8">
  <title>HTML Test: textarea with dir=auto, all N+EN</title>
  <link rel="author" title="Aharon Lanin" href="">
  <link rel="author" title="HTML5 bidi test WG" href="">
  <link rel="help" href="">
  <link rel="help" href="">
   <meta name="assert" content="
   When dir='auto', the direction is set according to the first strong character
   of the text.
   For textarea and pre elements, the heuristic is applied on a per-paragraph level.
   If there is no strong character, as in this test, the direction defaults to LTR.">
      body { text-align:left }
      textarea {
        resize: none;
      .ref {
        border: medium solid gray;
        width: 400px;
        margin: 20px;
      .comments {
        display: none;
    <div class="comments">
      We use text-align:left because neither the dir="auto" nor the unicode-bidi:plaintext
      specification states whether text-align:start and text-align:end should obey the paragraph
      direction or the direction property in a unicode-bidi:plaintext element. 
      The ...! paragraph, being neutral, is supposed to be displayed LTR (i.e. as ...!, not as !...)
      despite both the paragraph before it and the paragraph after it being all-RTL, which makes the
      element as a whole RTL.
   <div class="ref">
      <div dir="ltr">
        <textarea rows="5" dir="ltr">@123!
      <div dir="rtl">
        <textarea rows="5" dir="ltr">@123!