From 591b71dc478356a36920dae893dce5cecef2b130 Mon Sep 17 00:00:00 2001 From: Naina Raisinghani Date: Mon, 5 Jun 2017 14:29:29 -0700 Subject: [PATCH] Firsr draft --- css-typed-om/Overview.bs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/css-typed-om/Overview.bs b/css-typed-om/Overview.bs index b8659c15..ef075164 100644 --- a/css-typed-om/Overview.bs +++ b/css-typed-om/Overview.bs @@ -304,6 +304,13 @@ the [=property model=]. This list of properties is sorted in the following manne * custom properties are sorted by increasing code point order. * custom properties are sorted after normal properties. +The getProperties() method returns the following for custom properties: +* For Inline StylePropertyMap it should return the custom properties that are set on the inline style of the current Node. +* For Declared StylePropertyMap, should return the custom properties defined in the current style rule. +* For Computed StylePropertyMap it should return all custom properties defined on the current Node and its ancestors. Please note that only custom properties that have an initial value show up in the Computed StylePropertyMap. + +The method should also warn authors about performance issues if they type untyped custom properties. + Issue(145): should refactor out value type-checking, as it'll be needed by the rest of the setters too Issue(148): add detailed descriptions of the rest of the methods on {{StylePropertyMap}}