Skip to content
Updated CSS Context API implementation spec (markdown) authored by RaymondLim's avatar RaymondLim
......@@ -97,7 +97,11 @@ PROP_NAME Token Type
> 4. div {
><br /> clip|:
>
> 5. div {
><br /> c|lip:
>
All the above example will return a rule info object with "position.tokenType" assigned to PROP_NAME. "prop.index" and "prop.values" are not used for PROP_NAME token type so default values are returned for them.
For example 1 and 2 "prop.name" is an empty string since the cursor is not in any property name. Example 3 to 5 will have "clip" assigned to "prop.name". "position.offset" is the cursor offset in "clip" and it is zero for example 3, 4 for example 4 and 1 for example 5.
<br />
###Examples of Property Value context###
......
......