Skip to content

Review Mozilla 1761043: Implement hidden=until-found attribute and beforematch event

🔍 Bugzilla Audit

Bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1761043

Description

Adds a new hidden="until-found" attribute value. Content will have content-visibility: hidden applied to it until the user navigates to the content:

  1. Via an anchor or fragment link.
  2. Or via "Find in page".

When this happens the hidden attribute is removed and the beforematch event is fired.

So this adds another way to track user interaction, but I'm not sure it is that strong compared to what is already permissible with javascript.

The javascript-free version would be covered by #42829 (closed) (cc @ma1).


To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information