@@ -294,13 +294,13 @@ dictionary CalcDictionary {
294294};
295295
296296interface LengthValue : StyleValue {
297- LengthValue add(LengthValue value); // can throw
298- LengthValue subtract(LengthValue value); // can throw
299- LengthValue multiply(double value); // can throw
300- LengthValue divide(double value); // can throw
301- static LengthValue parse(DOMString cssText);
302- static LengthValue fromValue(double value, LengthType type);
303- static LengthValue fromDictionary(CalcDictionary dictionary);
297+ LengthValue add(LengthValue value); // can throw SyntaxError
298+ LengthValue subtract(LengthValue value); // can throw SyntaxError
299+ LengthValue multiply(double value); // can throw SyntaxError
300+ LengthValue divide(double value); // can throw SyntaxError
301+ static LengthValue parse(DOMString cssText); // can throw SyntaxError
302+ static LengthValue fromValue(double value, LengthType type); // can throw SyntaxError
303+ static LengthValue fromDictionary(CalcDictionary dictionary); // can throw SyntaxError
304304};
305305
306306[Constructor(DOMString cssText),
@@ -336,6 +336,8 @@ interface SimpleLength : LengthValue {
336336};
337337</pre>
338338
339+ If the provided DOMString or {{LengthValue}} is invalid the relevant function throws a SyntaxError.
340+
339341Issue(165): do we want an enum of length keywords too?
340342
341343Issue(167): write long descriptions of all of this
@@ -344,8 +346,6 @@ Issue(168): There are now 3 ways of creating Length values -
344346 StyleValue.parse, CalcLength/SimpleLength constructors, and LengthValue.parse / fromValue / fromDictionary.
345347 Is this too much?
346348
347- Issue(166): What happens if the provided DOMString or LengthValue for (e.g.) a SimpleLength is invalid?
348-
349349{{TransformValue}} objects {#transformvalue-objects}
350350-----------------------------------------------------------
351351
0 commit comments