<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>28517</bug_id>
          
          <creation_ts>2015-04-20 08:27:18 +0000</creation_ts>
          <short_desc>origin of the rule for textarea cols=0/rows=0</short_desc>
          <delta_ts>2015-08-13 06:47:59 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc>https://html.spec.whatwg.org/#the-textarea-element-2</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>Ms2ger</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>119674</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2015-04-20 08:27:18 +0000</bug_when>
    <thetext>Specification: https://html.spec.whatwg.org/multipage/rendering.html
Multipage: https://html.spec.whatwg.org/multipage/#the-textarea-element-2
Complete: https://html.spec.whatwg.org/#the-textarea-element-2
Referrer: https://html.spec.whatwg.org/multipage/

Comment:
origin of the rule for textarea cols=0/rows=0

Posted from: 193.190.253.150 by ms2ger@gmail.com
User agent: Mozilla/5.0 (X11; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119675</commentid>
    <comment_count>1</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2015-04-20 08:30:27 +0000</bug_when>
    <thetext>Rendering says:

&gt; If the element has a cols attribute, and parsing that attribute&apos;s value using
&gt; the rules for parsing non-negative integers doesn&apos;t generate an error, then
&gt; the user agent is expected to use the attribute as a presentational hint for
&gt; the &apos;width&apos; property on the element, with the value being the textarea
&gt; effective width (as defined below). Otherwise, the user agent is expected to
&gt; act as if it had a user-agent-level style sheet rule setting the &apos;width&apos;
&gt; property on the element to the textarea effective width.

So, cols=0 implies the element gets a preshint

The definition of character width says:

&gt; If applying the rules for parsing non-negative integers to the [cols]
&gt; attribute&apos;s value results in a number greater than zero, then the element&apos;s
&gt; character width is that value; otherwise, it is 20.

So cols=0 is effectively ignored.

I&apos;m not quite sure how to test this, but it seems like Rendering should ignore zero as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119733</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2015-04-21 21:15:47 +0000</bug_when>
    <thetext>It&apos;s effectively ignored just like cols=20 is effectively ignored. This is black-box non-detectable as far as I can tell. The only way you could tell there was an effect is if you had something in your UA stylesheet that could influence textarea widths.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119735</commentid>
    <comment_count>3</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2015-04-21 21:19:57 +0000</bug_when>
    <thetext>If it doesn&apos;t matter, I guess I don&apos;t care, but it feels kinda weird to have the requirement if so.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>