From 0703db8e93b1e44b697f00b91147dfa1af0fe46e Mon Sep 17 00:00:00 2001 From: Naina Raisinghani Date: Tue, 12 Dec 2017 15:55:48 +1100 Subject: [PATCH 1/2] CSSVariableReferenceValue.variable setter rejects invalid variable names --- css-typed-om/Overview.bs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/css-typed-om/Overview.bs b/css-typed-om/Overview.bs index 574b20f9..21c0e7b0 100644 --- a/css-typed-om/Overview.bs +++ b/css-typed-om/Overview.bs @@ -499,6 +499,18 @@ The length attribute indicates how man The indexed getter retrieves the string fragment or variable reference at the provided index. +
+ The variable attribute + of a {{CSSVariableReferenceValue}} |this| must, on setting a + variable |variable|, perform the following steps: + + 1. If |variable| does not start with two dashes (U+002D HYPHEN), [=throw=] a + {{TypeError}}, and exit this algorithm. + + 2. Otherwise, set |this|’s {{CSSVariableReferenceValue/variable}} internal slot, + to |variable|. +
+