Skip to content

Commit 4da8f9f

Browse files
committed
[css-values-5] Never mind, media-progress() and container-progress() should eval their calculations in the MQ/CQ context, so should *not* be consistent. #10890
1 parent 1cee978 commit 4da8f9f

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

css-values-5/Overview.bs

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -548,9 +548,8 @@ Interpolation Progress Functional Notations</h2>
548548
is equal to, less than, or greater than
549549
the shared value.
550550

551-
In either case, the result is a <<number>>,
552-
[=made consistent=] with the [=consistent type=]
553-
of the three arguments.
551+
Note: The return value is a plain <<number>>,
552+
not [=made consistent=] with its arguments by default.
554553
</div>
555554

556555
The resulting number can then be input into other calculations,
@@ -583,7 +582,8 @@ Calculated Progress Values: the ''progress()'' notation</h3>
583582
or else the function is invalid.
584583

585584
The result will be a <<number>>,
586-
determined by [=calculating a progress function=].
585+
determined by [=calculating a progress function=],
586+
then [=made consistent=] with the [=consistent type=] of its arguments.
587587

588588
ISSUE: Do we need a ''percent-progress()'' notation,
589589
or do enough places auto-convert that it's not necessary?
@@ -616,8 +616,10 @@ Media Query Progress Values: the ''media-progress()'' notation</h3>
616616
The specified [=media query=] must be a valid “range” type query,
617617
and the specified [=progress start value=] and [=progress end value=]
618618
must be valid values for the specified [=media query=],
619-
and must have a [=consistent type=],
620619
or else the function is invalid.
620+
Units in the [=progress start value=] and [=progress end value=]
621+
are interpreted as specified for the [=media feature=]
622+
(rather than as specified by the context the function is used in).
621623

622624
The result will be a <<number>>,
623625
determined by [=calculating a progress function=].
@@ -647,9 +649,12 @@ Container Query Progress Values: the ''container-progress()'' notation</h3>
647649
must be valid values for the specified <<size-feature>>,
648650
and must have a [=consistent type=],
649651
or else the function is invalid.
652+
Units in the [=progress start value=] and [=progress end value=]
653+
are interpreted as specified for the [=size feature=]
654+
(rather than as specified by the context the function is used in).
650655

651656
The result will be a <<number>>,
652-
[=made consistent=] with the [=consistent type=] of the arguments.
657+
determined by [=calculating a progress function=].
653658

654659
If no appropriate containers are found,
655660
''container-progress()'' resolves its <<size-feature>> query

0 commit comments

Comments
 (0)