Skip to content

Commit e3aaba7

Browse files
authored
Merge pull request #3544 from zcorpan/zcorpan/appearance-textfield
[css-ui] Make appearance: textfield on <input type=search> work
2 parents cc99761 + 9811403 commit e3aaba7

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

css-ui-4/Overview.bs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1795,7 +1795,7 @@ so that CSS can be used to restyle them.
17951795

17961796
<pre class="propdef">
17971797
Name: appearance
1798-
Value: ''appearance/none'' | ''auto'' | ''button'' | <<compat>>
1798+
Value: ''appearance/none'' | ''auto'' | ''button'' | ''textfield'' | <<compat>>
17991799
Initial: none
18001800
Applies To: all elements
18011801
Inherited: no
@@ -1848,13 +1848,21 @@ Animation type: discrete
18481848

18491849
Note: Using ''appearance/button'' on a <a spec="html">drop-down box</a> <{select}> element works.
18501850

1851+
<dt><dfn>textfield</dfn>
1852+
<dd>
1853+
For <{input}> elements where the <{input/type}> attribute is in the Search state,
1854+
the element is rendered as a "normal" text entry widget,
1855+
similar to an <{input}> element where the <{input/type}> attribute is in the Text state.
1856+
1857+
For all other elements, this value has the same effect as ''appearance/auto''.
1858+
18511859
<dt><dfn type="">&lt;compat></dfn>
18521860
<dd>
18531861
These values exist for compatibility of content developed
18541862
for earlier non standard versions of this property.
18551863
They all have the same effect as ''appearance/auto''.
18561864

1857-
<pre class=prod style="white-space: normal"><<compat>> = <dfn>textfield</dfn> | <dfn>searchfield</dfn> | <dfn>textarea</dfn> | <dfn>push-button</dfn> | <dfn>button-bevel</dfn> | <dfn>slider-horizontal</dfn> | <dfn>checkbox</dfn> | <dfn>radio</dfn> | <dfn>square-button</dfn> | <dfn>menulist</dfn> | <dfn>menulist-button</dfn> | <dfn>listbox</dfn> | <dfn>meter</dfn> | <dfn>progress-bar</pre></dfn>
1865+
<pre class=prod style="white-space: normal"><<compat>> = <dfn>searchfield</dfn> | <dfn>textarea</dfn> | <dfn>push-button</dfn> | <dfn>button-bevel</dfn> | <dfn>slider-horizontal</dfn> | <dfn>checkbox</dfn> | <dfn>radio</dfn> | <dfn>square-button</dfn> | <dfn>menulist</dfn> | <dfn>menulist-button</dfn> | <dfn>listbox</dfn> | <dfn>meter</dfn> | <dfn>progress-bar</pre></dfn>
18581866
18591867
Issue: If any of these value is not needed for web compat,
18601868
they should be dropped from this list;

0 commit comments

Comments
 (0)