From 0dee6b0b3766b40dadf3f83042050b0f791f8512 Mon Sep 17 00:00:00 2001 From: Darren Shen Date: Fri, 16 Feb 2018 10:46:44 +1100 Subject: [PATCH 1/2] Clarify CSSUnparsedValue.length --- css-typed-om/Overview.bs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/css-typed-om/Overview.bs b/css-typed-om/Overview.bs index 2d828990..3212ab77 100644 --- a/css-typed-om/Overview.bs +++ b/css-typed-om/Overview.bs @@ -652,7 +652,8 @@ They have a \[[tokens]] internal slot, which is a [=list=] of {{DOMString}}s and {{CSSVariableReferenceValue}} objects. This list is the object's [=values to iterate over=]. -The length attribute indicates how many string fragments and variable references are contained within the {{CSSUnparsedValue}}. +The length attribute returns the length +of the [[tokens]] internal slot. The indexed getter retrieves the string fragment or variable reference at the provided index. From aa7b37545a22ae38b9f0dc6700be8e98af84bcdd Mon Sep 17 00:00:00 2001 From: Darren Shen Date: Fri, 16 Feb 2018 11:59:07 +1100 Subject: [PATCH 2/2] Clarify CSSUnparsedValue a bit more --- css-typed-om/Overview.bs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/css-typed-om/Overview.bs b/css-typed-om/Overview.bs index 3212ab77..bcb98d4c 100644 --- a/css-typed-om/Overview.bs +++ b/css-typed-om/Overview.bs @@ -655,9 +655,17 @@ This list is the object's [=values to iterate over=]. The length attribute returns the length of the [[tokens]] internal slot. -The indexed getter retrieves the string fragment or variable reference at the provided index. +The indexed getter retrieves the {{CSSUnparsedSegment}} +from [[tokens]] at the provided index. + +The indexed setter sets the CSSUnparsedSegment +from [[tokens]] at the provided index to the provided {{CSSUnparsedValue}}.
+ The getter for the variable attribute + of a {{CSSVariableReferenceValue}} |this| + must return its {{CSSVariableReferenceValue/variable}} internal slot. + The variable attribute of a {{CSSVariableReferenceValue}} |this| must, on setting a variable |variable|, perform the following steps: