Content-Length: 296355 | pFad | http://github.com/w3c/csswg-drafts/commit/d6c1c0d0cfc93a4d23efa6de6827729d1c845e99

40 [css-values-4] Define that a percent resolved against another type ha… · w3c/csswg-drafts@d6c1c0d · 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 d6c1c0d

Browse files
committedFeb 29, 2024
[css-values-4] Define that a percent resolved against another type has that type as a percent hint. #10017
1 parent 50c63ef commit d6c1c0d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
 

‎css-values-4/Overview.bs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4282,7 +4282,9 @@ Type Checking</h3>
42824282
[=multiply two types|multiplying=] the |left type| and |right type|.
42834283

42844284
* Anything else is a terminal value,
4285-
whose [=CSSNumericValue/type=] is determined based on its CSS type:
4285+
whose [=CSSNumericValue/type=] is determined based on its CSS type.
4286+
(Unless otherwise specified,
4287+
the type's associated[=percent hint=] is null.)
42864288

42874289
<dl class=switch>
42884290
: <<number>>
@@ -4309,15 +4311,14 @@ Type Checking</h3>
43094311
<<percentage>>s are resolved relative to another type of value
43104312
(such as in 'width', where <<percentage>> is resolved against a <<length>>),
43114313
and that other type is <em>not</em> <<number>>,
4312-
the [=CSSNumericValue/type=] is determined as the other type.
4314+
the [=CSSNumericValue/type=] is determined as the other type,
4315+
but with a [=percent hint=] set to that other type.
43134316

43144317
Otherwise,
43154318
the [=CSSNumericValue/type=] is «[ "percent" → 1 ]».
43164319
: anything else
43174320
:: The [=calculation’s=] type is failure.
43184321
</dl>
4319-
4320-
In all cases, the associated [=percent hint=] is null.
43214322
</div>
43224323

43234324
[=Math functions=] themselves have [=CSSNumericValue/types=],

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/d6c1c0d0cfc93a4d23efa6de6827729d1c845e99

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy