<?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>24296</bug_id>
          
          <creation_ts>2014-01-15 02:20:54 +0000</creation_ts>
          <short_desc>Treating text inputs as just an inline-block doesn&apos;t handle overflow correctly</short_desc>
          <delta_ts>2019-03-29 20:26:00 +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>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#the-input-element-as-a-text-entry-widget</bug_file_loc>
          <status_whiteboard>blocked on getting a form control styling solution</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>bzbarsky</cc>
    
    <cc>d</cc>
    
    <cc>ian</cc>
    
    <cc>jackalmage</cc>
    
    <cc>mike</cc>
    
    <cc>w3bugs</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>98470</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-01-15 02:20:54 +0000</bug_when>
    <thetext>Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/rendering.html
Multipage: http://www.whatwg.org/C#the-input-element-as-a-text-entry-widget
Complete: http://www.whatwg.org/c#the-input-element-as-a-text-entry-widget
Referrer: 

Comment:
Treating text inputs as just an inline-block doesn&apos;t handle overflow correctly

Posted from: 98.110.194.132 by bzbarsky@mit.edu
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:29.0) Gecko/20100101 Firefox/29.0</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98471</commentid>
    <comment_count>1</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2014-01-15 02:25:22 +0000</bug_when>
    <thetext>Testcase:

  &lt;input style=&quot;overflow: visible; height: 0.5em&quot;
         value=&quot;This is some text and it is both too tall and too long&quot;&gt;

Per spec as currently written, there should be text overflowing the input.  No UA I know of does that, and sites depend on that not happening.

Furthermore, if we posit that these are inline-blocks with overflow set to hidden, then you&apos;re disallowing baseline-aligning the input, which is also suboptimal...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98530</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-01-15 22:26:41 +0000</bug_when>
    <thetext>What should the spec say then?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98785</commentid>
    <comment_count>3</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2014-01-20 19:24:16 +0000</bug_when>
    <thetext>I don&apos;t know.  Basically, the CSS spec sucks here:  if you make them replaced elements you can&apos;t give them a sane baseline per the spec, but if you make them non-replaced you get the issues I described.

What Gecko does is make them replaced elements with sane baseline (i.e. baseline not at the bottom margin edge but rather on the baseline of the text in the input)....</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98839</commentid>
    <comment_count>4</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-01-21 21:33:09 +0000</bug_when>
    <thetext>Tab, any chance CSS can give us some better hooks here?

On the long run we presumably want to define all this in terms of CSS being applied to actual nodes in a shadow tree of some sort.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98846</commentid>
    <comment_count>5</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2014-01-21 21:39:56 +0000</bug_when>
    <thetext>Actually... that&apos;s very difficult.

For example, padding specified on the input is expected to go inside the scrollable area (e.g. see https://bugzilla.mozilla.org/show_bug.cgi?id=157846 ).  But the scrollable area is expected to be scrollable somewhat independently of the overflow styles on the node.  And in particular, overflow:visible and overflow:scroll are both treated as &quot;hidden&quot; for inputs (but not for textareas!), except that the computed style says whatever the specified style is...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99508</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-01-30 22:50:37 +0000</bug_when>
    <thetext>Well as I see it, here are our options, in decreasing order of idealness, but
probably increasing order of readiness:

 - Wait for CSS and Web Components to be evolved enough that we can use a 
   combination of those to describe this.

 - Wait for CSS to have hooks available such that we can define this as a magical
   binding, which couldn&apos;t actually be implemented by authors.

 - Monkeypatch CSS directly from HTML to define this as a magical binding that
   couldn&apos;t actually be implemented by authors.

In any case, to do this we probably need a more firm description of what you want the spec to actually require (i.e. what is needed for Web compat?).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>129675</commentid>
    <comment_count>7</comment_count>
    <who name="Domenic Denicola">d</who>
    <bug_when>2019-03-29 20:26:00 +0000</bug_when>
    <thetext>https://github.com/whatwg/html/issues/4082</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>