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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>190521</bug_id>
          
          <creation_ts>2018-10-12 09:11:03 -0700</creation_ts>
          <short_desc>Sizing of &lt;input type=button&gt; is wrong for multi-line text</short_desc>
          <delta_ts>2022-07-01 19:04:20 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>238803</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>FromImplementor, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mats Palmgren">MatsPalmgren_bugz</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>ntim</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1468443</commentid>
    <comment_count>0</comment_count>
      <attachid>352170</attachid>
    <who name="Mats Palmgren">MatsPalmgren_bugz</who>
    <bug_when>2018-10-12 09:11:03 -0700</bug_when>
    <thetext>Created attachment 352170
Testcase

STEPS TO REPRODUCE
1. load the attached testcase

ACTUAL RESULTS
The first button from the left in the top row has the text:
a
b
c

This is correct, but it seems the button&apos;s height only accounted for one line.

The second button should have broken the text &quot;a b c&quot; into multiple lines
(since it has white-space:normal) but it displays the text on just one
line instead (and overflows).

The -webkit-appearance:none tests handles the white-space and line breaking
correctly and sizes the buttons to fit the text as expected.

(see Firefox for correct results)

BTW, the baseline alignment is also wrong, but I&apos;ve filed that as
https://bugs.chromium.org/p/chromium/issues/detail?id=894849
which might cover the relevant WebKit code too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1880285</commentid>
    <comment_count>1</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-01 16:51:08 -0700</bug_when>
    <thetext>We do not match Firefox or Chrome behavior here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1880286</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-07-01 16:51:15 -0700</bug_when>
    <thetext>&lt;rdar://problem/96321617&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1880313</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Nguyen (:ntim)">ntim</who>
    <bug_when>2022-07-01 19:04:20 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 238803 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>352170</attachid>
            <date>2018-10-12 09:11:03 -0700</date>
            <delta_ts>2018-10-12 09:11:03 -0700</delta_ts>
            <desc>Testcase</desc>
            <filename>Safari-button-white-space.html</filename>
            <type>text/html</type>
            <size>982</size>
            <attacher name="Mats Palmgren">MatsPalmgren_bugz</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIEhUTUw+CjwhLS0KICAgICBBbnkgY29weXJpZ2h0IGlzIGRlZGljYXRlZCB0byB0
aGUgUHVibGljIERvbWFpbi4KICAgICBodHRwOi8vY3JlYXRpdmVjb21tb25zLm9yZy9wdWJsaWNk
b21haW4vemVyby8xLjAvCi0tPgo8aHRtbD48aGVhZD4KICA8bWV0YSBjaGF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