Skip to content

Commit c900e93

Browse files
committed
[css-ui-4] Change appearance: button to only apply to buttons
Closes w3c#5174
1 parent 71b7178 commit c900e93

1 file changed

Lines changed: 10 additions & 14 deletions

File tree

css-ui-4/Overview.bs

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1766,7 +1766,7 @@ so this specification allows flexibility.
17661766

17671767
<pre class="propdef">
17681768
Name: appearance
1769-
Value: ''appearance/none'' | ''auto'' | ''button'' | ''textfield'' | ''menulist-button'' | <<compat-auto>>
1769+
Value: ''appearance/none'' | ''auto'' | ''textfield'' | ''menulist-button'' | <<compat-auto>>
17701770
Initial: none
17711771
Applies To: all elements
17721772
Inherited: no
@@ -1847,16 +1847,6 @@ so that CSS can be used to restyle them.
18471847

18481848
Elements other than <a>widgets</a> must be rendered as if ''appearance/none'' had been specified.
18491849

1850-
<dt><dfn>button</dfn>
1851-
<dd>
1852-
The element is rendered with the look and feel of a push button,
1853-
similar to the ''appearance: auto'' rendering of the [[HTML]] <{button}> element.
1854-
1855-
UAs must treat this value as ''appearance/auto'' on <{input}> elements,
1856-
<{textarea}> elements, <a spec="html">list box</a> <{select}> elements, <{meter}> elements, and <{progress}> elements.
1857-
1858-
Note: Using ''appearance/button'' on a <a spec="html">drop-down box</a> <{select}> element works.
1859-
18601850
<dt><dfn>textfield</dfn>
18611851
<dd>
18621852
For <{input}> elements where the <{input/type}> attribute is in the Search state,
@@ -1881,7 +1871,7 @@ so that CSS can be used to restyle them.
18811871
for earlier non-standard versions of this property.
18821872
They all have the same effect as ''appearance/auto''.
18831873

1884-
<pre class=prod style="white-space: normal"><<compat-auto>> = <dfn>searchfield</dfn> | <dfn>textarea</dfn> | <dfn>push-button</dfn> | <dfn>slider-horizontal</dfn> | <dfn>checkbox</dfn> | <dfn>radio</dfn> | <dfn>square-button</dfn> | <dfn>menulist</dfn> | <dfn>listbox</dfn> | <dfn>meter</dfn> | <dfn>progress-bar</dfn></pre>
1874+
<pre class=prod style="white-space: normal"><<compat-auto>> = <dfn>searchfield</dfn> | <dfn>textarea</dfn> | <dfn>push-button</dfn> | <dfn>slider-horizontal</dfn> | <dfn>checkbox</dfn> | <dfn>radio</dfn> | <dfn>square-button</dfn> | <dfn>menulist</dfn> | <dfn>listbox</dfn> | <dfn>meter</dfn> | <dfn>progress-bar</dfn> | <dfn>button</dfn> </pre>
18851875

18861876
Issue: When ''appearance/auto'' is widely supported,
18871877
recommend using it instead.
@@ -1892,7 +1882,7 @@ so that CSS can be used to restyle them.
18921882

18931883
Issue: It is possible that for compat reasons
18941884
some of these values need to be promoted to being full blown values
1895-
with effects on arbitrary elements like ''button'',
1885+
with effects on arbitrary elements,
18961886
or that
18971887
some of these values need to have some side effects on some <a>widgets</a>.
18981888

@@ -2164,7 +2154,13 @@ In addition to a number of editorial adjustments,
21642154
the following normative changes have been made:
21652155

21662156
<ul>
2167-
<li>Defined user-select to be discretely animatable, rather than not
2157+
<li>
2158+
Defined user-select to be discretely animatable, rather than not
2159+
2160+
<li>
2161+
Restricted the applicability of ''appearance: button''
2162+
so that it can no longer give a buttony appearance
2163+
to widgets that aren't buttons to start with.
21682164
</ul>
21692165

21702166
<h3 id=changes-22-12-2017 class=no-num>Changes from the

0 commit comments

Comments
 (0)