Skip to content

Commit 2f414aa

Browse files
darrnshntabatkins
authored andcommitted
Make CSSNumericValue members readonly (#602)
1 parent 1b0835d commit 2f414aa

File tree

1 file changed

+7
-22
lines changed

1 file changed

+7
-22
lines changed

css-typed-om/Overview.bs

+7-22
Original file line numberDiff line numberDiff line change
@@ -1570,7 +1570,7 @@ are represented as {{CSSUnitValue}}s.
15701570
[Constructor(double value, DOMString unit)]
15711571
interface CSSUnitValue : CSSNumericValue {
15721572
attribute double value;
1573-
attribute DOMString unit;
1573+
readonly attribute DOMString unit;
15741574
};
15751575
</xmp>
15761576

@@ -1588,21 +1588,6 @@ are represented as {{CSSUnitValue}}s.
15881588
and its {{CSSUnitValue/unit}} set to |unit|.
15891589
</div>
15901590

1591-
<div algorithm="CSSUnitValue.unit">
1592-
The <dfn attribute for=CSSUnitValue>unit</dfn> attribute of a {{CSSUnitValue}} |this| must,
1593-
on setting a value |unit|,
1594-
perform the following steps:
1595-
1596-
1. If [=creating a type=] from |unit| returns failure,,
1597-
[=throw=] a {{TypeError}}.
1598-
1599-
2. Otherwise,
1600-
set |this|’s {{CSSUnitValue/unit}} internal slot to |unit|.
1601-
1602-
On reading,
1603-
it must return the value of |this|’s {{CSSUnitValue/unit}} internal slot.
1604-
</div>
1605-
16061591
<div algorithm>
16071592
The <dfn>[=type=] of a {{CSSUnitValue}}</dfn>
16081593
is the result of [=creating a type=] from its {{CSSUnitValue/unit}} internal slot.
@@ -1681,32 +1666,32 @@ interface CSSMathValue : CSSNumericValue {
16811666

16821667
[Constructor(CSSNumberish... args)]
16831668
interface CSSMathSum : CSSMathValue {
1684-
attribute CSSNumericArray values;
1669+
readonly attribute CSSNumericArray values;
16851670
};
16861671

16871672
[Constructor(CSSNumberish... args)]
16881673
interface CSSMathProduct : CSSMathValue {
1689-
attribute CSSNumericArray values;
1674+
readonly attribute CSSNumericArray values;
16901675
};
16911676

16921677
[Constructor(CSSNumberish arg)]
16931678
interface CSSMathNegate : CSSMathValue {
1694-
attribute CSSNumericValue value;
1679+
readonly attribute CSSNumericValue value;
16951680
};
16961681

16971682
[Constructor(CSSNumberish arg)]
16981683
interface CSSMathInvert : CSSMathValue {
1699-
attribute CSSNumericValue value;
1684+
readonly attribute CSSNumericValue value;
17001685
};
17011686

17021687
[Constructor(CSSNumberish... args)]
17031688
interface CSSMathMin : CSSMathValue {
1704-
attribute CSSNumericArray values;
1689+
readonly attribute CSSNumericArray values;
17051690
};
17061691

17071692
[Constructor(CSSNumberish... args)]
17081693
interface CSSMathMax : CSSMathValue {
1709-
attribute CSSNumericArray values;
1694+
readonly attribute CSSNumericArray values;
17101695
};
17111696

17121697
interface CSSNumericArray {}; // See issue below

0 commit comments

Comments
 (0)