You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: css-fonts-4/Overview.bs
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -2919,7 +2919,7 @@ if all font style properties were set to their initial value.
2919
2919
are removed from the matching set. If there is no face
2920
2920
which contains the desired value, a stretch value is chosen using the rules below:
2921
2921
2922
-
* If the desired stretch value is less than or equal to 100, stretch values below the
2922
+
* If the desired stretch value is less than or equal to 100%, stretch values below the
2923
2923
desired stretch value are checked in descending order followed by
2924
2924
stretch values above the desired stretch value in ascending order until a
2925
2925
match is found.
@@ -2935,15 +2935,15 @@ if all font style properties were set to their initial value.
2935
2935
<div class="example" id="ascendingstretch">
2936
2936
This search algorithm can be thought of as a distance function, where the lowest-distance value present in the font family is selected, and all fonts not including that value are eliminated.
2937
2937
2938
-
Consider a font family with three fonts, named A, B, and C, each with associated supported ranges for the 'font-stretch!!property' descriptor. If an element is styled with "font-stretch: 125", the search algorithm can be visualized as follows:
2938
+
Consider a font family with three fonts, named A, B, and C, each with associated supported ranges for the 'font-stretch!!property' descriptor. If an element is styled with "font-stretch: 125%", the search algorithm can be visualized as follows:
The font stretch ranges supported by fonts A, B, and C are shown in the graph above. As you can see, because font B contains the minimum stretch value across the entire family, font B would be selected by this algorithm. However, if font B were somehow eliminated from the family, font C would then contain the lowest distance in the family, so it would be selected.
2943
2943
</div>
2944
2944
2945
2945
<div class="example">
2946
-
Similar to the <a href="#ascendingstretch">previous example</a>, here is the conceptual distance graph for an element styled with "font-stretch: 75":
2946
+
Similar to the <a href="#ascendingstretch">previous example</a>, here is the conceptual distance graph for an element styled with "font-stretch: 75%":
0 commit comments