Skip to content

Commit bd98097

Browse files
committed
[css-typed-om] Don't accidentally clash CSSClampValue.min/max with CSSNumericValue.min/max. Fixes #855
1 parent 6fdfd54 commit bd98097

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

css-typed-om/Overview.bs

+10-10
Original file line numberDiff line numberDiff line change
@@ -2084,10 +2084,10 @@ interface CSSMathMax : CSSMathValue {
20842084

20852085
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
20862086
interface CSSMathClamp : CSSMathValue {
2087-
constructor(CSSNumberish min, CSSNumberish val, CSSNumberish max);
2088-
readonly attribute CSSNumericValue min;
2089-
readonly attribute CSSNumericValue val;
2090-
readonly attribute CSSNumericValue max;
2087+
constructor(CSSNumberish lower, CSSNumberish value, CSSNumberish upper);
2088+
readonly attribute CSSNumericValue lower;
2089+
readonly attribute CSSNumericValue value;
2090+
readonly attribute CSSNumericValue upper;
20912091
};
20922092

20932093
[Exposed=(Window, Worker, PaintWorklet, LayoutWorklet)]
@@ -2180,20 +2180,20 @@ of all the "math" operations.
21802180
</div>
21812181

21822182
<div algorithm="CSSMathClamp(min, val, max)">
2183-
The <dfn constructor for="CSSMathClamp">CSSMathClamp(|min|, |val|, |max|)</dfn> constructor must,
2183+
The <dfn constructor for="CSSMathClamp">CSSMathClamp(|lower|, |value|, |upper|)</dfn> constructor must,
21842184
when called,
21852185
perform the following steps:
21862186

2187-
1. Replace |min|, |val|, and |max|
2187+
1. Replace |lower|, |value|, and |upper|
21882188
with the result of [=rectifying a numberish value=] for each.
21892189

2190-
2. Let |type| be the result of [=adding=] the [=types=] of |min|, |val|, and |max|.
2190+
2. Let |type| be the result of [=adding=] the [=types=] of |lower|, |value|, and |upper|.
21912191
If |type| is failure,
21922192
[=throw=] a {{TypeError}}.
21932193

21942194
3. Return a new {{CSSMathClamp}}
2195-
whose {{CSSMathClamp/min}}, {{CSSMathClamp/val}}, and {{CSSMathClamp/max}} internal slots
2196-
are set to |min|, |val|, and |max|, respectively.
2195+
whose {{CSSMathClamp/lower}}, {{CSSMathClamp/value}}, and {{CSSMathClamp/upper}} internal slots
2196+
are set to |lower|, |value|, and |upper|, respectively.
21972197
</div>
21982198

21992199
<div algorithm="CSSMathNegate(arg)">
@@ -2227,7 +2227,7 @@ of all the "math" operations.
22272227

22282228
: {{CSSMathClamp}}
22292229
:: The [=type=] is the result of [=adding=] the [=types=]
2230-
of the {{CSSMathClamp/min}}, {{CSSMathClamp/val}}, and {{CSSMathClamp/max}} internal slots.
2230+
of the {{CSSMathClamp/lower}}, {{CSSMathClamp/value}}, and {{CSSMathClamp/upper}} internal slots.
22312231

22322232
: {{CSSMathProduct}}
22332233
:: The [=type=] is the result of [=CSSNumericValue/multiplying=] the [=types=]

0 commit comments

Comments
 (0)