Improve native browser search support in full windowed mode (hidden: until-found
)
#16328
Labels
enhancement
pkg:documentsearch
tag:Search and Replace
tag:Virtual Rendering
Lazy and virtual rendering of notebook issues and PRs
Milestone
Problem
When searching notebooks in full windowing mode by using the native browser search function (rather than JupyterLab search box) not all results are shown because the cells which are out of view are not rendered (these are either detached or hidden using
display: none
.Proposed Solution
The HTML spec now includes a
hidden: until-found
attribute which corresponds tocontent-visibility: hidden
but is included in search results and revealed when user iterates through the browser search results. For an example usage see MDN.For now this is only implemented in Chrome/Edge
Additional context
content-visibility
for windowed notebooks is discussed in Usecontent-visibility
withcontain-intrinsic-size
for size caching in windowed notebooks #16327; this issue imposes a constraint that we should usecontent-visibility: hidden
rather thancontent-visibility: auto
if we want to later swap it forhidden: until-found
as it is equivalent to the formerThe text was updated successfully, but these errors were encountered: