Confirmed users
764
edits
Line 81: | Line 81: | ||
Contexts may be specified with any of the following types: | Contexts may be specified with any of the following types: | ||
; string: A CSS selector. The context arises when the menu is invoked on a node that matches this selector or has an ancestor that matches | ; string: A CSS selector. The context arises when the menu is invoked on a node that either matches this selector or has an ancestor that matches. Two further points: 1) The selector is scoped to the <tt>body</tt> of the page, and 2) the universal selector <tt>"*"</tt> is not allowed. Violation of the second point results in a useful error. | ||
; null: The page context. The context arises when the menu is invoked on a non-interactive portion of the page. The definition of "non-interactive" is at Jetpack's discretion. | ; null: The page context. The context arises when the menu is invoked on a non-interactive portion of the page. The definition of "non-interactive" is at Jetpack's discretion. |