Skip to content

Commit 918989a

Browse files
committed
[css-ui-4] Remove appearance:button
1 parent 6450478 commit 918989a

File tree

1 file changed

+10
-22
lines changed

1 file changed

+10
-22
lines changed

css-ui-4/Overview.bs

+10-22
Original file line numberDiff line numberDiff line change
@@ -593,13 +593,13 @@ which can neither be replicated nor styled using CSS.
593593

594594
This specification introduces the 'appearance' property
595595
to provide some control over this behavior.
596-
In particular, using ''appearance: none'' allows authors
596+
Using ''appearance: none'' allows authors
597597
to suppress the native style of form controls,
598598
so that CSS can be used to fully restyle them.
599599

600600
<pre class="propdef">
601601
Name: appearance
602-
Value: ''auto'' | ''none'' | ''button''
602+
Value: ''auto'' | ''none''
603603
Initial: auto
604604
Applies To: all elements
605605
Inherited: no
@@ -609,8 +609,8 @@ Media: all
609609

610610
Issue: Should ''appearance/auto'' compute to ''appearance/none'' on regular elements?
611611
I would say no:
612-
to be consistent, we should then have ''appearance/auto'' compute to ''button'' on buttons, etc.
613612
If we did that,
613+
to be consistent,
614614
every time we introduced a new value,
615615
we would change what ''appearance/auto'' computes to on some elements,
616616
which doesn't sounds desirable.
@@ -626,17 +626,15 @@ sometimes used to implement form controls.
626626
Moreover, many values of such an enumeration only make sense
627627
on a single element or pseudo-element,
628628
and are never used outside of the UA stylesheet.
629-
Instead, this specification will only provide
630-
''appearance/auto'', ''appearance/none'', and
631-
values which are useful in an author or user stylesheet
632-
and for which interoperability can be achieved.
629+
Instead, this specification only provides
630+
''appearance/auto'', ''appearance/none''.
633631
UAs cannot therefore use the 'appearance' property
634632
in the UA stylesheet to give each control is native look and feel,
635633
and must use ''appearance:auto'' instead.
636634

637-
Issue: IE supports -webkit-appearance, and also includes the textfield value.
635+
Issue: IE supports -webkit-appearance, and also includes the textfield and button values.
638636
Presumably this was done due to compatibility problems,
639-
so we may want to include it as well.
637+
so we may need to include it as well.
640638

641639
<dl dfn-type=value dfn-for=appearance>
642640
<dt><dfn>auto</dfn>
@@ -653,18 +651,9 @@ so we may want to include it as well.
653651

654652
Issue: Shouldn't this be called "normal" instead?
655653
''appearance/none'' makes it sound like the targeted element will disappear.
656-
<dt><dfn>button</dfn>
657-
<dd>The element is rendered with the look and feel of a push button,
658-
similar to the rendering of the HTML <{button}> element.
659-
660-
Issue: There are strong concerns as to whether this property should have any value
661-
other than ''appearance/auto'' and ''appearance/none''.
662-
The ''appearance/button'' value may be necessary due to backward compatibility concerns,
663-
but if it is not, there is a strong possibility that it will be dropped.
664654
</dl>
665655

666656
On form control elements where the computed value is ''appearance/auto''
667-
and on other elements where the computed value is neither ''appearance/auto'' nor ''appearance/none'',
668657
UAs may disregard some CSS properties
669658
to ensure that the intended appearance is preserved,
670659
or because these property may not be meaningful for the chosen appearance.
@@ -744,11 +733,10 @@ For example, regardless of the computed value of 'appearance':
744733
(although it may look different).
745734
<li>Event handlers attached to the element trigger as usual.
746735
</ul>
736+
747737
Conversely, changing the appearance of an element must not cause it
748-
to acquire the semantics, pseudo classes, event handlers, etc
749-
that are typical of the element whose appearance it acquires.
750-
For example, neither '':enabled'' nor '':disabled'' match on
751-
a <{div}> styled with ''appearance: button''.
738+
to acquire new semantics, pseudo classes, event handlers, etc
739+
that it did not initially have.
752740
The ability for an element to be focused
753741
is also not changed by the 'appearance' property.
754742

0 commit comments

Comments
 (0)