Content-Length: 334108 | pFad | http://github.com/w3c/csswg-drafts/commit/0d0efea0e2bdce3d5fde9bb1c433a951eaed8790

90 [css-values-5] Set the types correctly for progress fucntions and cal… · w3c/csswg-drafts@0d0efea · GitHub
Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0d0efea

Browse files
committedFeb 29, 2024
[css-values-5] Set the types correctly for progress fucntions and calc-mix(). #10017
1 parent da777c6 commit 0d0efea

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed
 

‎css-values-5/Overview.bs

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,10 @@ Calculated Progress Values: the ''progress()'' notation</h3>
158158
(the [=progress start value=]
159159
and [=progress end value=]).
160160
The argument [=calculations=] can resolve to any <<number>>, <<dimension>>, or <<percentage>>,
161-
but must have the same [=determine the type of a calculation|type=],
161+
but must have a [=consistent type=]
162162
or else the function is invalid.
163+
The result will be a <<number>>,
164+
[=made consistent=] with the [=consistent type=] of the arguments.
163165

164166
The syntax of ''progress()'' is defined as follows:
165167

@@ -208,6 +210,12 @@ Media Query Progress Values: the ''media-progress()'' notation</h3>
208210
must be valid values for the specified [=media query=],
209211
or else the function is invalid.
210212

213+
The two input [=calculations=]
214+
but must have a [=consistent type=]
215+
or else the function is invalid.
216+
The result will be a <<number>>,
217+
[=made consistent=] with the [=consistent type=] of the arguments.
218+
211219
<h3 id="container-progress-func">
212220
Container Query Progress Values: the ''container-progress()'' notation</h3>
213221

@@ -226,6 +234,12 @@ Container Query Progress Values: the ''container-progress()'' notation</h3>
226234
the named containers to consider when selecting a container
227235
to resolve against.
228236

237+
The two input [=calculations=]
238+
but must have a [=consistent type=]
239+
or else the function is invalid.
240+
The result will be a <<number>>,
241+
[=made consistent=] with the [=consistent type=] of the arguments.
242+
229243
If no appropriate containers are found,
230244
''container-progress()'' resolves its <<size-feature>> query
231245
against the [=small viewport size=].
@@ -353,8 +367,15 @@ Interpolated Numeric and Dimensional Values: the ''calc-mix()'' notation</h3>
353367

354368
The <<calc-sum>> arguments can resolve
355369
to any <<number>>, <<dimension>>, or <<percentage>>,
356-
but must have the same [=determine the type of a calculation|type=],
370+
but must have a [=consistent type=]
357371
or else the function is invalid.
372+
The result's type will be the [=consistent type=].
373+
374+
Issue: This return type doesn't correctly capture the possibility
375+
that the <<progress>>,
376+
via one of the progress fucntions,
377+
invokes a volatile percentage
378+
that could potentially trigger "behaves as auto" behavior.
358379

359380
The [=used value=] of a valid ''calc-mix()'' is
360381
the result of interpolating these two values

0 commit comments

Comments
 (0)
Failed to load comments.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/w3c/csswg-drafts/commit/0d0efea0e2bdce3d5fde9bb1c433a951eaed8790

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy