Skip to content

Commit d249791

Browse files
darrnshntabatkins
authored andcommitted
Clarify CSSUnparsedValue and CSSVariableReferenceValue. (w3c#676)
* Clarify CSSUnparsedValue.length * Clarify CSSUnparsedValue a bit more
1 parent 88f8c3d commit d249791

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

css-typed-om/Overview.bs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,11 +632,20 @@ They have a <dfn attribute for=CSSUnparsedValue>\[[tokens]]</dfn> internal slot,
632632
which is a [=list=] of {{DOMString}}s and {{CSSVariableReferenceValue}} objects.
633633
This list is the object's [=values to iterate over=].
634634

635-
The <dfn attribute for=CSSUnparsedValue>length</dfn> attribute indicates how many string fragments and variable references are contained within the {{CSSUnparsedValue}}.
635+
The <dfn attribute for=CSSUnparsedValue>length</dfn> attribute returns the length
636+
of the <dfn attribute for=CSSUnparsedValue>[[tokens]]</dfn> internal slot.
636637

637-
The <dfn for=CSSUnparsedValue>indexed getter</dfn> retrieves the string fragment or variable reference at the provided index.
638+
The <dfn for=CSSUnparsedValue>indexed getter</dfn> retrieves the {{CSSUnparsedSegment}}
639+
from [[tokens]] at the provided index.
640+
641+
The <dfn for=CSSUnparsedValue>indexed setter</dfn> sets the CSSUnparsedSegment
642+
from [[tokens]] at the provided index to the provided {{CSSUnparsedValue}}.
638643

639644
<div algorithm="CSSVariableReferenceValue.variable">
645+
The getter for the <dfn attribute for=CSSVariableReferenceValue>variable</dfn> attribute
646+
of a {{CSSVariableReferenceValue}} |this|
647+
must return its {{CSSVariableReferenceValue/variable}} internal slot.
648+
640649
The <dfn attribute for=CSSVariableReferenceValue>variable</dfn> attribute
641650
of a {{CSSVariableReferenceValue}} |this| must, on setting a
642651
variable |variable|, perform the following steps:

0 commit comments

Comments
 (0)