[wp-trac] [WordPress Trac] #52083: Twenty Twenty-One: Input fields do not have a max-width by default

WordPress Trac noreply at wordpress.org
Fri Dec 18 17:20:20 UTC 2020


#52083: Twenty Twenty-One: Input fields do not have a max-width by default
---------------------------+---------------------
 Reporter:  kjellr         |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  5.7
Component:  Bundled Theme  |     Version:  5.6
 Severity:  normal         |  Resolution:
 Keywords:  needs-patch    |     Focuses:  css
---------------------------+---------------------

Comment (by ryelle):

 I can reproduce this both with Contact Form 7, and with the following
 HTML. I needed to use the responsive view in Chrome's dev tools, just
 resizing the browser doesn't get it small enough (<400px).

 {{{
 <form>
 <input type="text" size="40" />
 </form>
 }}}

 The issue is that there's a `size` set, so it's a fixed size, and like
 @kjellr mentioned, the `max-width` is `unset` - I think that's meant to
 make sure the max-width inherits from the parent container, but instead
 it's just `none`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52083#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list