Skip to content

Commit 952d954

Browse files
jfkthamesvgeesus
authored andcommitted
[css-fonts-4] Add font-synthesis-position
1 parent 615c184 commit 952d954

1 file changed

Lines changed: 120 additions & 28 deletions

File tree

css-fonts-4/Overview.bs

Lines changed: 120 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1891,13 +1891,47 @@ Controlling synthesized small caps: The 'font-synthesis-small-caps' property</h4
18911891
Synthesis of small caps faces is not allowed
18921892
</dl>
18931893

1894+
<h4 id="font-synthesis-position">
1895+
Controlling synthesized super- and subscripts: The 'font-synthesis-position' property</h4>
1896+
1897+
<pre class="propdef">
1898+
Name: font-synthesis-position
1899+
Value: auto | none
1900+
Initial: auto
1901+
Applies to: all elements and text
1902+
Inherited: yes
1903+
Percentages: N/A
1904+
Computed value: specified keyword
1905+
Animation type: discrete
1906+
</pre>
1907+
1908+
<wpt>
1909+
font-synthesis-position-001.html
1910+
parsing/font-synthesis-position-invalid.html
1911+
parsing/font-synthesis-position-valid.html
1912+
</wpt>
1913+
1914+
This property controls whether user agents are required to synthesize
1915+
superscript and subscript glyphs for 'font-variant-position'
1916+
when a font lacks them.
1917+
1918+
<dl dfn-for=font-synthesis-position dfn-type=value>
1919+
<dt><dfn>auto</dfn>
1920+
<dd>
1921+
Synthesis of superscript and subscript forms is required
1922+
1923+
<dt><dfn>none</dfn>
1924+
<dd>
1925+
Synthesis of superscript and subscript forms is not allowed
1926+
</dl>
1927+
18941928
<h4 id="font-synthesis">
18951929
Controlling synthetic faces: the 'font-synthesis' shorthand</h4>
18961930

18971931
<pre class="propdef">
18981932
Name: font-synthesis
1899-
Value: none | [ weight || style || small-caps]
1900-
Initial: weight style small-caps
1933+
Value: none | [ weight || style || small-caps || position]
1934+
Initial: weight style small-caps position
19011935
Applies to: all elements and text
19021936
Inherited: yes
19031937
Percentages: N/A
@@ -1919,8 +1953,9 @@ Controlling synthetic faces: the 'font-synthesis' shorthand</h4>
19191953
</wpt>
19201954

19211955
This property is a shorthand for the 'font-synthesis-weight',
1922-
'font-synthesis-style', and
1923-
'font-synthesis-small-caps' properties. Values are mapped as following:
1956+
'font-synthesis-style',
1957+
'font-synthesis-small-caps',
1958+
and 'font-synthesis-position' properties. Values are mapped as following:
19241959

19251960
<table class='data'>
19261961
<thead>
@@ -1929,47 +1964,104 @@ Controlling synthetic faces: the 'font-synthesis' shorthand</h4>
19291964
<th>'font-synthesis-weight' value
19301965
<th>'font-synthesis-style' value
19311966
<th>'font-synthesis-small-caps' value</th>
1967+
<th>'font-synthesis-position' value</th>
19321968
<tbody>
19331969
<tr>
19341970
<th>none
19351971
<td>none
19361972
<td>none
1937-
<td>none
1973+
<td>none
1974+
<td>none
19381975
<tr>
19391976
<th>weight
19401977
<td>auto
19411978
<td>none
1942-
<td>none
1979+
<td>none
1980+
<td>none
19431981
<tr>
19441982
<th>style
19451983
<td>none
19461984
<td>auto
1947-
<td>none
1948-
<tr>
1949-
<th>small-caps
1950-
<td>none
1951-
<td>none
1952-
<td>auto
1985+
<td>none
1986+
<td>none
1987+
<tr>
1988+
<th>small-caps
1989+
<td>none
1990+
<td>none
1991+
<td>auto
1992+
<td>none
1993+
<tr>
1994+
<th>position
1995+
<td>none
1996+
<td>none
1997+
<td>none
1998+
<td>auto
19531999
<tr>
19542000
<th>weight style
19552001
<td>auto
19562002
<td>auto
1957-
<td>none
1958-
<tr>
1959-
<th>weight small-caps
1960-
<td>auto
1961-
<td>none
1962-
<td>auto
1963-
<tr>
1964-
<th>style small-caps
1965-
<td>none
1966-
<td>auto
1967-
<td>auto
1968-
<tr>
1969-
<th>weight style small-caps
1970-
<td>auto
1971-
<td>auto
1972-
<td>auto
2003+
<td>none
2004+
<td>none
2005+
<tr>
2006+
<th>weight small-caps
2007+
<td>auto
2008+
<td>none
2009+
<td>auto
2010+
<td>none
2011+
<tr>
2012+
<th>weight position
2013+
<td>auto
2014+
<td>none
2015+
<td>none
2016+
<td>auto
2017+
<tr>
2018+
<th>style small-caps
2019+
<td>none
2020+
<td>auto
2021+
<td>auto
2022+
<td>none
2023+
<tr>
2024+
<th>style position
2025+
<td>none
2026+
<td>auto
2027+
<td>none
2028+
<td>auto
2029+
<tr>
2030+
<th>small-caps position
2031+
<td>none
2032+
<td>none
2033+
<td>auto
2034+
<td>auto
2035+
<tr>
2036+
<th>weight style small-caps
2037+
<td>auto
2038+
<td>auto
2039+
<td>auto
2040+
<td>none
2041+
<tr>
2042+
<th>weight style position
2043+
<td>auto
2044+
<td>auto
2045+
<td>none
2046+
<td>auto
2047+
<tr>
2048+
<th>weight small-caps position
2049+
<td>auto
2050+
<td>none
2051+
<td>auto
2052+
<td>auto
2053+
<tr>
2054+
<th>style small-caps position
2055+
<td>none
2056+
<td>auto
2057+
<td>auto
2058+
<td>auto
2059+
<tr>
2060+
<th>weight style small-caps position
2061+
<td>auto
2062+
<td>auto
2063+
<td>auto
2064+
<td>auto
19732065
</table>
19742066

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

0 commit comments

Comments
 (0)