Skip to content

Commit

Permalink
[css-fonts-4] Add font-synthesis-position
Browse files Browse the repository at this point in the history
  • Loading branch information
jfkthame authored and svgeesus committed Aug 27, 2023
1 parent 615c184 commit 952d954
Showing 1 changed file with 120 additions and 28 deletions.
148 changes: 120 additions & 28 deletions css-fonts-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1891,13 +1891,47 @@ Controlling synthesized small caps: The 'font-synthesis-small-caps' property</h4
Synthesis of small caps faces is not allowed
</dl>

<h4 id="font-synthesis-position">
Controlling synthesized super- and subscripts: The 'font-synthesis-position' property</h4>

<pre class="propdef">
Name: font-synthesis-position
Value: auto | none
Initial: auto
Applies to: all elements and text
Inherited: yes
Percentages: N/A
Computed value: specified keyword
Animation type: discrete
</pre>

<wpt>
font-synthesis-position-001.html
parsing/font-synthesis-position-invalid.html
parsing/font-synthesis-position-valid.html
</wpt>

This property controls whether user agents are required to synthesize
superscript and subscript glyphs for 'font-variant-position'
when a font lacks them.

<dl dfn-for=font-synthesis-position dfn-type=value>
<dt><dfn>auto</dfn>
<dd>
Synthesis of superscript and subscript forms is required

<dt><dfn>none</dfn>
<dd>
Synthesis of superscript and subscript forms is not allowed
</dl>

<h4 id="font-synthesis">
Controlling synthetic faces: the 'font-synthesis' shorthand</h4>

<pre class="propdef">
Name: font-synthesis
Value: none | [ weight || style || small-caps]
Initial: weight style small-caps
Value: none | [ weight || style || small-caps || position]
Initial: weight style small-caps position
Applies to: all elements and text
Inherited: yes
Percentages: N/A
Expand All @@ -1919,8 +1953,9 @@ Controlling synthetic faces: the 'font-synthesis' shorthand</h4>
</wpt>

This property is a shorthand for the 'font-synthesis-weight',
'font-synthesis-style', and
'font-synthesis-small-caps' properties. Values are mapped as following:
'font-synthesis-style',
'font-synthesis-small-caps',
and 'font-synthesis-position' properties. Values are mapped as following:

<table class='data'>
<thead>
Expand All @@ -1929,47 +1964,104 @@ Controlling synthetic faces: the 'font-synthesis' shorthand</h4>
<th>'font-synthesis-weight' value
<th>'font-synthesis-style' value
<th>'font-synthesis-small-caps' value</th>
<th>'font-synthesis-position' value</th>
<tbody>
<tr>
<th>none
<td>none
<td>none
<td>none
<td>none
<td>none
<tr>
<th>weight
<td>auto
<td>none
<td>none
<td>none
<td>none
<tr>
<th>style
<td>none
<td>auto
<td>none
<tr>
<th>small-caps
<td>none
<td>none
<td>auto
<td>none
<td>none
<tr>
<th>small-caps
<td>none
<td>none
<td>auto
<td>none
<tr>
<th>position
<td>none
<td>none
<td>none
<td>auto
<tr>
<th>weight style
<td>auto
<td>auto
<td>none
<tr>
<th>weight small-caps
<td>auto
<td>none
<td>auto
<tr>
<th>style small-caps
<td>none
<td>auto
<td>auto
<tr>
<th>weight style small-caps
<td>auto
<td>auto
<td>auto
<td>none
<td>none
<tr>
<th>weight small-caps
<td>auto
<td>none
<td>auto
<td>none
<tr>
<th>weight position
<td>auto
<td>none
<td>none
<td>auto
<tr>
<th>style small-caps
<td>none
<td>auto
<td>auto
<td>none
<tr>
<th>style position
<td>none
<td>auto
<td>none
<td>auto
<tr>
<th>small-caps position
<td>none
<td>none
<td>auto
<td>auto
<tr>
<th>weight style small-caps
<td>auto
<td>auto
<td>auto
<td>none
<tr>
<th>weight style position
<td>auto
<td>auto
<td>none
<td>auto
<tr>
<th>weight small-caps position
<td>auto
<td>none
<td>auto
<td>auto
<tr>
<th>style small-caps position
<td>none
<td>auto
<td>auto
<td>auto
<tr>
<th>weight style small-caps position
<td>auto
<td>auto
<td>auto
<td>auto
</table>

<div class="example" id="ex-no-obliqued-arabic">
Expand Down

0 comments on commit 952d954

Please sign in to comment.