Skip to content

Commit

Permalink
Add spec for appearance:base
Browse files Browse the repository at this point in the history
This was discussed here: w3c#5998
  • Loading branch information
josepharhar committed Jul 25, 2024
1 parent aa94f65 commit 74d1b37
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions css-ui-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2111,7 +2111,7 @@ Switching appearance: the 'appearance' property</h3>

<pre class="propdef">
Name: appearance
Value: ''appearance/none'' | ''auto'' | <<compat-auto>> | <<compat-special>>
Value: ''appearance/none'' | ''auto'' | ''base'' | <<compat-auto>> | <<compat-special>>
Initial: none
Applies To: all elements
Inherited: no
Expand All @@ -2133,7 +2133,10 @@ Switching appearance: the 'appearance' property</h3>
In particular, using ''appearance: none'' allows authors
to suppress the <a>native appearance</a> of <a>widgets</a>,
giving them a <dfn export>primitive appearance</dfn>
where CSS can be used to restyle them.
where CSS can be used to restyle them. Using ''appearance: base'' also
suppresses the <a>native appearance</a> of <a>widgets</a> and additionally
enables additional styling capabilities and interoperability, giving them a
<dfn export>base appearance</dfn>.

<details class=note>
<summary>Note on the history of this feature</summary>
Expand Down Expand Up @@ -2199,6 +2202,18 @@ Switching appearance: the 'appearance' property</h3>

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

<dt><dfn>base</dfn>
<dd>
Just like ''appearance/none'', the element is rendered following the
usual rules of CSS. Replaced elements other than <a>widgets</a> are not
affected by this and remain replaced elements. <a>Widgets</a> must not
have their <a>native appearance</a>, and instead must have their <a>base
appearance</a>.

<a>Widgets</a> which don't have a <a>base appearance</a> must be rendered
as for ''appearance/auto''. The host language is responsible for defining
which <a>widgets</a> have a <a>base appearance</a>.

<dt><dfn type="">&lt;compat-auto></dfn>
<dd>
These values exist for compatibility of content developed
Expand Down

0 comments on commit 74d1b37

Please sign in to comment.