<?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>234734</bug_id>
          
          <creation_ts>2021-12-28 14:46:22 -0800</creation_ts>
          <short_desc>[GTK] input type=search doesn&apos;t get styled properly.</short_desc>
          <delta_ts>2021-12-28 14:46:22 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>Other</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Pedro Paulo">pedropaulosuzuki1</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1827130</commentid>
    <comment_count>0</comment_count>
      <attachid>448058</attachid>
    <who name="Pedro Paulo">pedropaulosuzuki1</who>
    <bug_when>2021-12-28 14:46:22 -0800</bug_when>
    <thetext>Created attachment 448058
Test example on input type=search custom styling not working properly on WebkitGTK

Hello everyone! Hope y&apos;all doing fine this tuesday!

I was bugtracking my website on GNOME Web and found out that WebkitGTK seems to have some issues to style &lt;input type=&quot;search&quot;&gt; elements. If the input is type=&quot;text&quot;, everything works fine. You&apos;re able to change the border-radius, remove the border, change the background color and all of that. But on type=&quot;search&quot;, you&apos;re not able to do any of that. Of course you can change the font-color, set the width and height you want, add padding, but some of the settings just fail to work when the input is set to type=&quot;search&quot; for some reason. It doesn&apos;t seem to be an issue on Safari, so I guess it probably is an WebkitGTK specific issue.

## Working example
```html
&lt;!DOCTYPE html&gt;
&lt;html&gt;
	&lt;head&gt;
	    &lt;title&gt;[GTK] input type=search doesn&apos;t get styled properly.&lt;/title&gt;
		&lt;style&gt;
			body {
				width: 100vw;
				height: 100vh;
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: center;
				gap: 20px;
			}
			
			input {
				width: 350px;
				height: 30px;
				border: 0;
				outline: 0;
				border-radius: 20px;

				text-align: center;
				background-color: #eee;
			}
		&lt;/style&gt;
	&lt;/head&gt;
	&lt;body&gt;
		&lt;input type=&quot;text&quot; placeholder=&quot;Type=text gets styled properly in WebkitGTK&quot;&gt;
		&lt;input type=&quot;search&quot; placeholder=&quot;Search doesn&apos;t get styled properly in WebkitGTK&quot;&gt;
	&lt;/body&gt;
&lt;/html&gt;
```html

Issue found on GNOME Web 41.3 Flatpak (WebKitGTK 2.34.2). On a friend&apos;s iPhone it worked without major problems regarding this specific issue.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>448058</attachid>
            <date>2021-12-28 14:46:22 -0800</date>
            <delta_ts>2021-12-28 14:46:22 -0800</delta_ts>
            <desc>Test example on input type=search custom styling not working properly on WebkitGTK</desc>
            <filename>[GTK] input type search doesn&apos;t get styled properly.html</filename>
            <type>text/html</type>
            <size>658</size>
            <attacher name="Pedro Paulo">pedropaulosuzuki1</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgoJPGhlYWQ+CgkgICAgPHRpdGxlPltHVEtdIGlucHV0IHR5
cGU9c2VhcmNoIGRvZXNuJ3QgZ2V0IHN0eWxlZCBwcm9wZXJseS48L3RpdGxlPgoJCTxzdHlsZT4K
CQkJYm9keSB7CgkJCQl3aWR0aDogMTAwdnc7CgkJCQloZWlnaHQ6IDEwMHZoOwoJCQkJZGlzcGxh
eTogZmxleDsKCQkJCWZsZXgtZGlyZWN0aW9uOiBjb2x1bW47CgkJCQlhbGlnbi1pdGVtczogY2Vu
dGVyOwoJCQkJanVzdGlmeS1jb250ZW50OiBjZW50ZXI7CgkJCQlnYXA6IDIwcHg7CgkJCX0KCQkJ
CgkJCWlucHV0IHsKCQkJCXdpZHRoOiAzNTBweDsKCQkJCWhlaWdodDogMzBweDsKCQkJCWJvcmRl
cjogMDsKCQkJCW91dGxpbmU6IDA7CgkJCQlib3JkZXItcmFkaXVzOiAyMHB4OwoKCQkJCXRleHQt
YWxpZ246IGNlbnRlcjsKCQkJCWJhY2tncm91bmQtY29sb3I6ICNlZWU7CgkJCX0KCQk8L3N0eWxl
PgoJPC9oZWFkPgoJPGJvZHk+CgkJPGlucHV0IHR5cGU9InRleHQiIHBsYWNlaG9sZGVyPSJUeXBl
PXRleHQgZ2V0cyBzdHlsZWQgcHJvcGVybHkgaW4gV2Via2l0R1RLIj4KCQk8aW5wdXQgdHlwZT0i
c2VhcmNoIiBwbGFjZWhvbGRlcj0iU2VhcmNoIGRvZXNuJ3QgZ2V0IHN0eWxlZCBwcm9wZXJseSBp
biBXZWJraXRHVEsiPgoJPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>