Skip to content

Commit 02602eb

Browse files
authored
Merge pull request w3c#5955 from nschonni/bikeshed-css-fonts-4-2
[css-fonts-4] HTML validation from Bikeshed
2 parents 9bffcc9 + c2825b0 commit 02602eb

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

css-fonts-4/Overview.bs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ Relative Weights</h4>
582582
The computed weight is calculated based on the inherited 'font-weight!!property' value
583583
using the chart below.
584584

585-
<table id="bolderlighter" class="data" summary="Bolder/lighter mappings">
585+
<table id="bolderlighter" class="data">
586586
<thead>
587587
<tr>
588588
<th>Inherited value (<var>w</var>)
@@ -3272,15 +3272,15 @@ if all font style properties were set to their initial value.
32723272
are checked in this stage.
32733273
5. If no match is found, oblique values less than or equal to 0deg are checked in descending order until a match is found.
32743274
6. If no match is found, italic values less than or equal to 0 are checked in descending order until a match is found.
3275+
</ol>
32753276

3276-
<div class="example">
3277-
Similar to the <a href="#ascendingstretch">previous example</a>, here is the conceptual distance graph for an element styled with "font-style: oblique 13deg":
3277+
<div class="example">
3278+
Similar to the <a href="#ascendingstretch">previous example</a>, here is the conceptual distance graph for an element styled with "font-style: oblique 13deg":
32783279

3279-
<img src="images/styledistance3.svg" alt="distance graph">
3280+
<img src="images/styledistance3.svg" alt="distance graph">
32803281

3281-
As you can see, because font D contains the minimum oblique value across the entire family, font D would be selected by this algorithm. However, if font D were somehow eliminated from the family, font C would then contain the lowest distance in the family, so it would be selected. If C were eliminated, E would be selected. If E were eliminated, font B would not be chosen immediately; instead, italic values would be consulted and an italic value might be chosen. However, if no italic value is chosen, font B would then be selected, followed by font A.
3282-
</div>
3283-
</ol>
3282+
As you can see, because font D contains the minimum oblique value across the entire family, font D would be selected by this algorithm. However, if font D were somehow eliminated from the family, font C would then contain the lowest distance in the family, so it would be selected. If C were eliminated, E would be selected. If E were eliminated, font B would not be chosen immediately; instead, italic values would be consulted and an italic value might be chosen. However, if no italic value is chosen, font B would then be selected, followed by font A.
3283+
</div>
32843284

32853285
If the value of 'font-style!!property' is ''oblique'' and the requested angle is less than 0deg and greater than -20deg, follow the steps <a href="#lesser-oblique-steps">above</a>, except with the negated values and opposite directions. If the value of 'font-style!!property' is ''oblique'' and the requested angle is less than or equal to -20deg, follow the steps <a href="#greater-oblique-steps">above</a>, except with the negated values and opposite directions.
32863286

@@ -3373,14 +3373,14 @@ if all font style properties were set to their initial value.
33733373
computations, e.g., by ''em'' values in other properties, are based on
33743374
the 'font-size' value that
33753375
is used, not the one that is specified.
3376-
3377-
Note that more than one font might be remaining in the matching set after performing
3378-
the above steps. If so, the user agent must choose a single font from
3379-
the matching set and continue these steps with it. The choice of which
3380-
font to choose can differ between multiple user agents and multiple operating
3381-
system platforms; however, it must not differ between two elements in the same document.
33823376
</ol>
33833377

3378+
Note that more than one font might be remaining in the matching set after performing
3379+
the above steps. If so, the user agent must choose a single font from
3380+
the matching set and continue these steps with it. The choice of which
3381+
font to choose can differ between multiple user agents and multiple operating
3382+
system platforms; however, it must not differ between two elements in the same document.
3383+
33843384
5. If the matched face is defined via ''@font-face''
33853385
rules, user agents must use the procedure below to select a single
33863386
font:
@@ -6584,12 +6584,12 @@ None.
65846584

65856585
<h3 id="sp213">How does this specification distinguish between behavior in first-party and third-party contexts?</h3>
65866586

6587-
<a href="#font-fetching-requirements">For font loads, user agents must use the
6587+
<a href="#font-fetching-requirements">For font loads</a>, user agents must use the
65886588
potentially CORS-enabled fetch method defined by the [[!HTML]] specification
65896589
for URL’s defined within @font-face rules.
65906590
When fetching, user agents must use "Anonymous" mode,
65916591
set the referrer source to the stylesheet’s URL
6592-
and set the origin to the URL of the containing document</a>.
6592+
and set the origin to the URL of the containing document.
65936593

65946594
Thus, fonts will typically not be loaded cross-origin
65956595
unless authors specifically takes steps to permit cross-origin loads.

0 commit comments

Comments
 (0)