- From: Wesley Walter Anton Oliver via GitHub <sysbot+gh@w3.org>
- Date: Mon, 06 Jan 2025 17:44:26 +0000
- To: public-css-archive@w3.org
wesleyolis has just created a new issue for https://github.com/w3c/csswg-drafts: == Feature: pointer-events: duplicate-event; for a href anchor == **Proposal** I would like to propose that for a tag element with an anchor href specified, which doesn't cause a page to reload, that one can cause the click pointer event on the element to not be swallowed, this would allow one to use a host of CSS tricks in the future with anchors, were one could automatically close menu items, by having a hidden checkbox or radio box toggled in the background. duplicate or duplicate-passthrough, the naming is not as important for now, but the concept. The following would cause the point click event to not be followed by the element and be duplicated and propagated to non-javascript CSS elements for processing still. In which case it would cause the checkbox to be toggled on/off in the background as well. In the bigger picture the many other little tricks I am sure we shall find for it. ```.css a.dup { pointer-events: duplicate; } label input { position:absolute; opacity: 0; height: 0; width: 0; } #opt :checked ~ menu { display:block } ``` ```.html <label> Show Menu <input id='opt' type="checkbox"> <div id="menu"> <a href="#anchor1">some jump link</a> </div> </lable> ``` Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11448 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 6 January 2025 17:44:27 UTC