Skip to content

Commit ebca02f

Browse files
committed
[css-fonts-4] remove font-min-size and font-max-size, add example, fixes w3c#3739
1 parent 4604483 commit ebca02f

File tree

1 file changed

+15
-44
lines changed

1 file changed

+15
-44
lines changed

css-fonts-4/Overview.bs

Lines changed: 15 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -829,17 +829,24 @@ Font size: the 'font-size' property</h3>
829829
</pre>
830830
</div>
831831

832-
Note: The computed value of this property is clamped by
833-
the computed values of 'font-min-size' and 'font-max-size'.
834-
Furthermore,
835-
the used value of this property can differ from its computed value
832+
Note: The used value of this property
833+
can differ from its computed value
836834
due to 'font-size-adjust'.
837835
However, child elements inherit the computed 'font-size' value,
838836
which is not affected by 'font-size-adjust'
839837
(otherwise, the effect of 'font-size-adjust' would compound).
840838

841839
The actual value of this property can differ from the used value
842-
due to the unavailability of certain font sizes.
840+
due to the unavailability of certain font sizes.
841+
842+
843+
<div class="example">
844+
font-size can be clamped, for responsive typography.
845+
<pre>
846+
font-size: clamp(10px, ..., 36px);
847+
</pre>
848+
</div>
849+
<!-- https://github.com/w3c/csswg-drafts/issues/3739 -->
843850

844851
<h4 id="absolute-size-mapping">
845852
Absolute Size Keyword Mapping Table</h4>
@@ -903,45 +910,9 @@ Font size: the 'font-size' property</h3>
903910
should nevertheless avoid creating font sizes
904911
of less than 9 device pixels per EM unit.
905912

906-
<h3 id="font-min-max-size-prop">Minimum and maximum font size: the 'font-min-size' and 'font-max-size' properties</h3>
907-
908-
<pre class="propdef">
909-
Name: font-min-size
910-
Value: <<absolute-size>> | <<relative-size>> | <<length-percentage>>
911-
Initial: 0
912-
Applies to: all elements
913-
Inherited: yes
914-
Percentages: refer to parent element's font size
915-
Computed value: an absolute length
916-
Animation type: by computed value type
917-
</pre>
918-
919-
<pre class="propdef">
920-
Name: font-max-size
921-
Value: <<absolute-size>> | <<relative-size>> | <<length-percentage>> | infinity
922-
Initial: infinity
923-
Applies to: all elements
924-
Inherited: yes
925-
Percentages: refer to parent element's font size
926-
Computed value: an absolute length
927-
Animation type: by computed value type
928-
</pre>
929-
930-
These two properties allow an author or user to require that an element's font size be clamped
931-
within the specified range.
932-
If the specified value 'font-size' is outside the bounds created by
933-
the used 'font-min-size' and 'font-max-size',
934-
the computed value of 'font-size' is clamped to the values specified in these two properties.
935-
936-
If the computed 'font-min-size' is larger than the computed 'font-max-size',
937-
then the used 'font-max-size' is increased to match the 'font-min-size'.
938-
939-
Some user agents provide a non-standard mapping between the computed value of 'font-size' and the used value of 'font-size'.
940-
The interaction of those nonstandard algorithms with 'font-min-size' or 'font-max-size' is explicitly undefined.
941-
942-
Note: Users with accessibility preferences can set these properties
943-
as ''!important'' rules in a <a>user style sheet</a>
944-
to force websites‘ text to become larger or smaller.
913+
<!-- font-min size and font-max-size removed by CSSWG resolution
914+
https://github.com/w3c/csswg-drafts/issues/3739
915+
-->
945916

946917
<h3 id="font-size-adjust-prop">
947918
Relative sizing: the 'font-size-adjust' property</h3>

0 commit comments

Comments
 (0)