Skip to content

Commit 99861ad

Browse files
author
Naina Raisinghani
committed
add error info inline to function description
1 parent 036bb61 commit 99861ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

css-typed-om/Overview.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,11 +383,11 @@ The following methods are defined for {{LengthValue}} objects:
383383
:: Divides the length represented by the object by the provided <var>value</var>,
384384
and returns the result as a new {{LengthValue}}. This will construct
385385
a {{SimpleLength}} if the object is a {{SimpleLength}}, or a {{CalcLength}}
386-
if the object is a {{CalcLength}}.
386+
if the object is a {{CalcLength}}. The function can throw a DivideByZerError if value given is 0.
387387

388388
: <dfn method for=LengthValue>parse(DOMString cssText)</dfn>
389389
:: Parses the provided <var>cssText</var> as a length value. Will return a
390-
{{SimpleLength}} when possible, or a {{CalcLength}} otherwise.
390+
{{SimpleLength}} when possible, or a {{CalcLength}} otherwise. The function can throw a SyntaxError if the DOMString it is passed doesn't represent a valid length.
391391

392392
: <dfn method for=LengthValue>fromValue(double value, LengthType type)</dfn>
393393
:: Constructs a {{SimpleLength}} with the given <var>value</var> and unit

0 commit comments

Comments
 (0)