[Bug 12999] Allow nodefault="" on <menu type=context>

https://www.w3.org/Bugs/Public/show_bug.cgi?id=12999

--- Comment #23 from Florian Bender [fbender] <fb+w3c@quantumedia.de> ---
For backwards compatibility, it may be an idea that if `showdefault` is not
specified, the UA should show the full context menu (like Firefox does atm). 

There could also be an option `none` for `showdefault` which makes the UA hide
the default/"native" context menu items, like shown in the example[1] mentioned
in comment 22. Thus an empty `showdefault` is not allowed / ignored.
`nooverflow` (pending bikeshedding) should still be there to allow hiding the
rest completely (if UA allows it). 

Thinking about it, this is probably the most sane behaviour: 
(A) If `showdefault` attribute is not present or empty on the
`menu[type=popup]` element, display the default items below the added (via
`<menuitem>`) items (separated by a line).
(B) For `showdefault="none"`, hide the default items which can be made visible
by clicking the disclosure triangle.
(C) For all other values of `showdefault`, display the appropriate items of the
group and hide all other items. These hidden items can be made visible by
clicking the disclosure triangle, as long as `nooverflow` is not part of the
attribute item list and the UA allows this attribute item. 


[1]
http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2012-December/038472.html

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Saturday, 26 October 2013 15:43:44 UTC