Skip to content

Commit 08ebea0

Browse files
committed
[css-values-5] Clarifications to *progress() interpretation and validity
1 parent aa296cb commit 08ebea0

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

css-values-5/Overview.bs

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ Calculated Progress Values: the ''progress()'' notation
823823
but must have a [=consistent type=]
824824
or else the function is invalid.
825825

826-
The result will be a <>,
826+
The value of ''progress()'' is a <>,
827827
determined by [=calculating a progress function=],
828828
then [=made consistent=] with the [=consistent type=] of its arguments.
829829

@@ -863,11 +863,12 @@ Media Query Progress Values: the ''media-progress()'' notation
863863
must be valid values for the specified [=media query=],
864864
and both [=calculation=] values must have a [=consistent type=],
865865
or else the function is invalid.
866-
Units in the [=progress start value=] and [=progress end value=]
866+
867+
The [=progress start value=] and [=progress end value=] [=calculations=]
867868
are interpreted as specified for the [=media feature=]
868869
(rather than as specified by the context the function is used in).
869870

870-
The result will be a <>,
871+
The value of ''media-progress()'' is a <>,
871872
determined by [=calculating a progress function=].
872873

873874
Note: ''media-progress()'' is not a [=math function=];
@@ -901,17 +902,19 @@ Container Query Progress Values: the ''container-progress()'' notation
901902
must be valid values for that [=size feature=],
902903
and both [=calculation=] values must have a [=consistent type=],
903904
or else the function is invalid.
904-
Units in the [=progress start value=] and [=progress end value=]
905+
''container-progress()'' is only valid in a property value context;
906+
it cannot be used in, for example, a [=media query=].
907+
908+
The [=progress start value=] and [=progress end value=] [=calculations=]
905909
are interpreted as specified for the [=size feature=]
906910
(rather than as specified by the context the function is used in).
907-
908-
The result will be a <>,
909-
determined by [=calculating a progress function=].
910-
911911
If no appropriate containers are found,
912912
''container-progress()'' resolves its <> query
913913
against the [=small viewport size=].
914914

915+
The value of ''media-progress()'' is a <>,
916+
determined by [=calculating a progress function=].
917+
915918
Note: ''container-progress()'' is not a [=math function=];
916919
it's just a function that evaluates to a <>.
917920

0 commit comments

Comments
 (0)