Skip to content

Commit 0d3ba6e

Browse files
authored
[css-ui-4] Define appearance:base (#10691)
This was discussed here: #5998
1 parent 16133fe commit 0d3ba6e

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

css-ui-4/Overview.bs

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2116,7 +2116,7 @@ Switching appearance: the 'appearance' property</h3>
21162116

21172117
<pre class="propdef">
21182118
Name: appearance
2119-
Value: ''appearance/none'' | ''auto'' | <<compat-auto>> | <<compat-special>>
2119+
Value: ''appearance/none'' | ''auto'' | ''base'' | <<compat-auto>> | <<compat-special>>
21202120
Initial: none
21212121
Applies To: all elements
21222122
Inherited: no
@@ -2140,6 +2140,22 @@ Switching appearance: the 'appearance' property</h3>
21402140
giving them a <dfn export>primitive appearance</dfn>
21412141
where CSS can be used to restyle them.
21422142

2143+
Using ''appearance: base'' gives <a>widgets</a> a <dfn export>base
2144+
appearance</dfn>. <a>Widgets</a> in <span>base appearance</span> have their
2145+
<a>native appearance</a> suppressed where CSS can be used to restyle them,
2146+
just like <a>primitive appearance</a>, but also have default styles which are
2147+
usable and interoperable. This is unlike <a>primitive appearance</a> which
2148+
can cause some <a>widgets</a> to disappear completely.
2149+
2150+
A widget can have some style sheet associated with it and those styles can
2151+
change based on whether the widget has a <span>base appearance</span>.
2152+
<span>Native appearance</span> and <span>primitive appearance</span> should
2153+
have the same styles.
2154+
2155+
ISSUE: ''appearance:base'' is not ready to ship until its stylesheet has been
2156+
fully defined in the HTML specification, and implemented accordingly, for all
2157+
HTML form controls.
2158+
21432159
<details class=note>
21442160
<summary>Note on the history of this feature</summary>
21452161

@@ -2204,6 +2220,25 @@ Switching appearance: the 'appearance' property</h3>
22042220

22052221
Elements other than <a>widgets</a> must be rendered as for ''appearance/none''.
22062222

2223+
<dt><dfn>base</dfn>
2224+
<dd>
2225+
The effect of ''appearance/base'' depends on the element it is applied to:
2226+
<dl class=switch>
2227+
: elements other than <a>widgets</a>
2228+
:: Elements other than <a>widgets</a> must be rendered as for
2229+
''appearance/none''.
2230+
2231+
: <a>Widgets</a> which support <a>base appearance</a>
2232+
:: Just like ''appearance/none'', the element is rendered following the
2233+
usual rules of CSS. <a>Widgets</a> must not have their <a>native
2234+
appearance</a>, and instead must have their <a>base appearance</a>.
2235+
2236+
: <a>Widgets</a> which don't support <a>base appearance</a>
2237+
:: <a>Widgets</a> which don't have a <a>base appearance</a> must be
2238+
rendered as for ''appearance/auto''. The host language is responsible
2239+
for defining which <a>widgets</a> have a <a>base appearance</a>.
2240+
</dl>
2241+
22072242
<dt><dfn type="">&lt;compat-auto></dfn>
22082243
<dd>
22092244
These values exist for compatibility of content developed

0 commit comments

Comments
 (0)