Labs/Jetpack/Reboot/JEP/112: Difference between revisions

Jump to navigation Jump to search
m
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 the selector.  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.
; 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.
Confirmed users
764

edits

Navigation menu