W3C home > Mailing lists > Public > www-amaya@w3.org > April to June 2005

TEXTAREA and INPUT type=text size calculation and other

From: Juan Lanus <jlanus@netscape.net>
Date: Thu, 2 Jun 2005 13:36:06 +0000 (UTC)
To: www-amaya@w3.org
Message-ID: <loom.20050602T150958-431@post.gmane.org>

Hi,
I wrote a test-case and checked it with FF and IE.
It's below, the HTML contains the explanation of the problems found.
It's tested with Amaya 8.7.4 in W2K.
Thanks
--
Juan Lanus
TECNOSOL
Argentina


<html>
<head>
  <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
  <title>TEXTAREA/INPUT style test-case</title>
  <style>
    .InputData {
      width: 100%; 
      overflow: auto;
      background-color: yellow;
    }
  </style>
</head>

<body style="font-family: sans-serif, helvetica; background-color: #f8f8e8;">
<h2>TEXTAREA/INPUT style test-case</h2>

<table width="100%" border="1">
  <tbody>
    <tr>
      <td><h4>TEXTAREA:</h4>
        <ul>
          <li>Should display exactly 4 lines bacause of the rows="4"
          attribute</li>
          <li>Should have width equal to TD width, equal to 100% of body
            width: when resized (widened and then narrowed) the table remains
            wide, in 8.7.3 it's always "widest"</li>
          <li>Should have a vertical scrollbar, because of overflow=auto and
            the existence of more than 4 lines</li>
          <li>Should not grow in heigth when more lines are added, always
            rows="4"</li>
          <li>Should not save value data: this is a problem in a
            browser/editor but maybe it can managed like the columns in
            tables or adding another level in the structure like for instance
            a "content" item into TEXTAREA and other FORM elements</li>
          <li>Should not indent neither break long lines in value data: this
            is related to the previous bullet</li>
        </ul>
      </td>
    </tr>
    <tr>
      <td><textarea class="InputData" id="qqq" rows="4" cols="20">kjh kjh
                                                        kj hk hkj hkj hkj hkjh
kj hkhkjh khkjh kjhg
                                kjhgkj
                                        zzz zzz
                                                        kjhg kjhg kjhg kjh g
                                                        kjh kjh kj hk hkj hkj
hkj hkjh kj hkhkjh
                                khkjh kjhg
                                                        kjhgkj hgk jhg
                                                        kjhg kjhg kjhg kjh g
        </textarea></td>
    </tr>
    <tr>
      <td><h4>INPUT type=TEXT:</h4>
        <ul>
          <li>Should have width equal to TD width, equal to 100% of body
          width</li>
          <li>Should not save value data</li>
        </ul>
      </td>
    </tr>
    <tr>
      <td><input type="text" class="InputData" id="qqq"
        value="kjh kjh kj hk hkj hkj hkj hkjh kj hkhkjh"></td>
    </tr>
  </tbody>
</table>
</body>
</html>
Received on Thursday, 2 June 2005 13:43:08 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 April 2014 11:01:43 UTC