Skip to content

Commit ec09576

Browse files
committed
[css-fonts-4] Clean up font-synthesis section
1 parent b9e2fff commit ec09576

1 file changed

Lines changed: 27 additions & 21 deletions

File tree

css-fonts-4/Overview.bs

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,30 +1317,36 @@ Shorthand font property: the 'font' property</h3>
13171317
<h3 id="font-synthesis-prop">
13181318
Controlling synthetic faces: the 'font-synthesis' property</h3>
13191319

1320-
<pre class="propdef">
1321-
Name: font-synthesis
1322-
Value: none | [ weight || style || small-caps ]
1323-
Initial: weight style small-caps
1324-
Applies to: all elements
1325-
Inherited: yes
1326-
Percentages: N/A
1327-
Computed value: as specified
1328-
Media: visual
1329-
Animatable: no
1330-
</pre>
1320+
<pre class="propdef">
1321+
Name: font-synthesis
1322+
Value: none | [ weight || style || small-caps ]
1323+
Initial: weight style small-caps
1324+
Applies to: all elements
1325+
Inherited: yes
1326+
Percentages: N/A
1327+
Computed value: as specified
1328+
Media: visual
1329+
Animatable: no
1330+
</pre>
13311331

1332-
This property controls whether user agents are allowed to synthesize bold or oblique font
1333-
faces when a font family lacks bold or italic faces. If ''weight'' is not specified, user agents
1334-
must not synthesize bold faces. If ''style'' is not specified, user agents must not synthesize
1335-
italic faces. If ''small-caps'' is not specified, user agents must not synthesize small-caps faces
1336-
nor all-small-caps faces.
1337-
A value of ''font-synthesis/none'' disallows all synthetic faces.
1332+
This property controls whether user agents are allowed
1333+
to synthesize bold, oblique or small-cap font faces
1334+
when a font family lacks bold, italic or small-cap faces.
1335+
The initial value allows all types of synthesis.
1336+
If ''weight'' is not specified,
1337+
user agents must <em>not</em> synthesize bold faces.
1338+
If ''style'' is not specified,
1339+
user agents must <em>not</em> synthesize italic faces.
1340+
If ''small-caps'' is not specified,
1341+
user agents must <em>not</em> synthesize small-caps faces
1342+
<em>nor</em> all-small-caps faces.
1343+
A value of ''font-synthesis/none'' disallows all synthetic faces.
13381344

1339-
<div class="example">
1340-
The style rule below disables the use of synthetically obliqued Arabic:
1345+
<div class="example">
1346+
The style rule below disables the use of synthetically obliqued Arabic:
13411347

1342-
<pre>*:lang(ar) { font-synthesis: none; }</pre>
1343-
</div>
1348+
<pre>*:lang(ar) { font-synthesis: none; }</pre>
1349+
</div>
13441350

13451351
<h2 id="font-rendering-controls">
13461352
Font Rendering Controls</h2>

0 commit comments

Comments
 (0)