Implement hidden=until-found for find-in-page and ElementFragments [chromium/src : main]

3 views
Skip to first unread message

Joey Arhar (Gerrit)

unread,
Aug 12, 2021, 4:39:50 PM8/12/21
to blink-rev...@chromium.org, blink-...@chromium.org

Attention is currently required from: vmpstr.

Joey Arhar uploaded patch set #7 to this change.

View Change

Implement hidden=until-found for find-in-page and ElementFragments

This patch implements the hidden=until-found attribute, which is a
replacement for the content-visibility:hidden-matchable CSS property
with two key differences:
1. It's an HTML attribute instead of a CSS property.
2. The attribute is automatically removed by the browser when the
content is revealed, instead of requiring the page to remove it.

Bug: 1055002
Change-Id: I53cf79cf10b778755f1798ae68443c7eb2c572b6
---
M third_party/blink/renderer/core/display_lock/display_lock_context.cc
M third_party/blink/renderer/core/display_lock/display_lock_context.h
M third_party/blink/renderer/core/dom/element.cc
M third_party/blink/renderer/core/editing/finder/text_finder.cc
M third_party/blink/renderer/core/html/html_details_element.cc
M third_party/blink/renderer/core/html/html_element.cc
M third_party/blink/renderer/core/html/html_element.h
M third_party/blink/renderer/core/page/scrolling/element_fragment_anchor.cc
A third_party/blink/web_tests/editing/text-iterator/auto-expand-until-found.html
A third_party/blink/web_tests/editing/text-iterator/hidden-until-found-beforematch.html
A third_party/blink/web_tests/external/wpt/html/dom/elements/global-attributes/hidden-until-found-fragment-navigation-nested.tentative.html
A third_party/blink/web_tests/external/wpt/html/dom/elements/global-attributes/hidden-until-found-fragment-navigation.tentative.html
12 files changed, 200 insertions(+), 17 deletions(-)

To view, visit change 2858763. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I53cf79cf10b778755f1798ae68443c7eb2c572b6
Gerrit-Change-Number: 2858763
Gerrit-PatchSet: 7
Gerrit-Owner: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
Gerrit-Reviewer: vmpstr <vmp...@chromium.org>
Gerrit-Attention: vmpstr <vmp...@chromium.org>
Gerrit-MessageType: newpatchset

Blink WPT Bot (Gerrit)

unread,
Aug 12, 2021, 5:16:28 PM8/12/21
to blink-rev...@chromium.org, blink-...@chromium.org, vmpstr, Chromium LUCI CQ, chromium...@chromium.org

Attention is currently required from: vmpstr.

Exportable changes to web-platform-tests were detected in this CL and a pull request in the upstream repo has been made: https://github.com/web-platform-tests/wpt/pull/30013.

When this CL lands, the bot will automatically merge the PR on GitHub if the required GitHub checks pass; otherwise, ecosystem-infra@ team will triage the failures and may contact you.

WPT Export docs:
https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md#Automatic-export-process

View Change

    To view, visit change 2858763. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I53cf79cf10b778755f1798ae68443c7eb2c572b6
    Gerrit-Change-Number: 2858763
    Gerrit-PatchSet: 7
    Gerrit-Owner: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: vmpstr <vmp...@chromium.org>
    Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
    Gerrit-Attention: vmpstr <vmp...@chromium.org>
    Gerrit-Comment-Date: Thu, 12 Aug 2021 21:16:19 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    vmpstr (Gerrit)

    unread,
    Aug 19, 2021, 11:49:36 AM8/19/21
    to Joey Arhar, blink-rev...@chromium.org, blink-...@chromium.org, Blink WPT Bot, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Joey Arhar.

    View Change

    3 comments:

    • File third_party/blink/renderer/core/display_lock/display_lock_context.h:

    • File third_party/blink/renderer/core/editing/finder/text_finder.cc:

      • Patch Set #8, Line 104: // We need to update the style and layout since the event dispatched may

        Just in terms of timing, does this thing have the event? Or does the event come later?

        I think that we need to reveal hidden ancestors before we fire the event, but the comments here seem to suggest that we first fire an event then reveal the contents

    • File third_party/blink/renderer/core/html/html_element.cc:

      • Patch Set #8, Line 2049: if (EqualIgnoringASCIICase(

        Can a match be found in an iframe? I'm not sure this traversal crosses boundaries or whether that's possible to have.

        Also, I don't think it's possible for us to call this on a node in a visibility:hidden or display:none subtree, but can you verify?

        I'm wondering if just removing until-found without any extra checks is the right thing or whether it might be a little too aggressive.

    To view, visit change 2858763. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I53cf79cf10b778755f1798ae68443c7eb2c572b6
    Gerrit-Change-Number: 2858763
    Gerrit-PatchSet: 8
    Gerrit-Owner: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: vmpstr <vmp...@chromium.org>
    Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
    Gerrit-Attention: Joey Arhar <jar...@chromium.org>
    Gerrit-Comment-Date: Thu, 19 Aug 2021 15:49:24 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    Joey Arhar (Gerrit)

    unread,
    Aug 24, 2021, 6:12:14 PM8/24/21
    to blink-rev...@chromium.org, blink-...@chromium.org, Blink WPT Bot, vmpstr, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: vmpstr.

    View Change

    3 comments:

    • File third_party/blink/renderer/core/display_lock/display_lock_context.h:

      • Done

    • File third_party/blink/renderer/core/editing/finder/text_finder.cc:

      • Patch Set #8, Line 104: // We need to update the style and layout since the event dispatched may

        Just in terms of timing, does this thing have the event? Or does the event come later? […]

      • I agree, the event should be fired after the attribute is removed.
        I have a comment in HTMLElement::RevealHiddenUntilFoundAncestors to do so, I plan to fix the timing based on our conversation yesterday and move the firing of the beforematch event there in a later patch.

    • File third_party/blink/renderer/core/html/html_element.cc:

      • Can a match be found in an iframe? I'm not sure this traversal crosses boundaries or whether that's […]

        So I just spend a bunch of time writing a test for this and debugging why it didnt end up working...

        It appears that each LocalFrame has its own TextFinder, and I think that the browser process is responsible for deciding which one to search in...
        For some reason, the async requestAnimationFrame task to reveal the hidden=until-found matches inside an iframe never fires...
        I added tests for this, but I might need to look at this some more in a later patch or something.

        (I also tried making the traversal cross boundaries but that didn't actually make it work)

    To view, visit change 2858763. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I53cf79cf10b778755f1798ae68443c7eb2c572b6
    Gerrit-Change-Number: 2858763
    Gerrit-PatchSet: 9
    Gerrit-Owner: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: vmpstr <vmp...@chromium.org>
    Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
    Gerrit-Attention: vmpstr <vmp...@chromium.org>
    Gerrit-Comment-Date: Tue, 24 Aug 2021 22:12:06 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: vmpstr <vmp...@chromium.org>
    Gerrit-MessageType: comment

    vmpstr (Gerrit)

    unread,
    Aug 25, 2021, 11:43:50 AM8/25/21
    to Joey Arhar, blink-rev...@chromium.org, blink-...@chromium.org, Blink WPT Bot, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Joey Arhar.

    View Change

    1 comment:

    • File third_party/blink/renderer/core/html/html_element.cc:

      • So I just spend a bunch of time writing a test for this and debugging why it didnt end up working... […]

        Interesting. We should dig into this to understand exactly how it works. We definitely need to search in a separate process for something like an OOPIF, so I wonder how we can make it work if we have something like

        <div hidden=until-found>
        <iframe src="example.com/match-is-here.html></iframe>
        </div>

    To view, visit change 2858763. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I53cf79cf10b778755f1798ae68443c7eb2c572b6
    Gerrit-Change-Number: 2858763
    Gerrit-PatchSet: 9
    Gerrit-Owner: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: vmpstr <vmp...@chromium.org>
    Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
    Gerrit-Attention: Joey Arhar <jar...@chromium.org>
    Gerrit-Comment-Date: Wed, 25 Aug 2021 15:43:36 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: vmpstr <vmp...@chromium.org>
    Comment-In-Reply-To: Joey Arhar <jar...@chromium.org>
    Gerrit-MessageType: comment

    Joey Arhar (Gerrit)

    unread,
    Sep 2, 2021, 2:15:17 AM9/2/21
    to blink-rev...@chromium.org, blink-...@chromium.org, Blink WPT Bot, vmpstr, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: vmpstr.

    View Change

    1 comment:

    • File third_party/blink/renderer/core/html/html_element.cc:

      • Interesting. We should dig into this to understand exactly how it works. […]

        I'm really at a loss for understanding why Document::EnqueueAnimationFrameTask isn't firing its callback in this case... do you have any ideas? Or know anyone I could ask?

        I added tests for hidden=until-found around an iframe and within an iframe. Do you think it would be worth landing this patch now and fixing those tests later?

    To view, visit change 2858763. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I53cf79cf10b778755f1798ae68443c7eb2c572b6
    Gerrit-Change-Number: 2858763
    Gerrit-PatchSet: 9
    Gerrit-Owner: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: vmpstr <vmp...@chromium.org>
    Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
    Gerrit-Attention: vmpstr <vmp...@chromium.org>
    Gerrit-Comment-Date: Thu, 02 Sep 2021 06:15:07 +0000

    vmpstr (Gerrit)

    unread,
    Sep 3, 2021, 3:10:24 PM9/3/21
    to Joey Arhar, blink-rev...@chromium.org, blink-...@chromium.org, Blink WPT Bot, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Joey Arhar.

    View Change

    1 comment:

    • File third_party/blink/renderer/core/html/html_element.cc:

    To view, visit change 2858763. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I53cf79cf10b778755f1798ae68443c7eb2c572b6
    Gerrit-Change-Number: 2858763
    Gerrit-PatchSet: 9
    Gerrit-Owner: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: vmpstr <vmp...@chromium.org>
    Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
    Gerrit-Attention: Joey Arhar <jar...@chromium.org>
    Gerrit-Comment-Date: Fri, 03 Sep 2021 19:10:16 +0000

    Joey Arhar (Gerrit)

    unread,
    Sep 7, 2021, 4:26:16 PM9/7/21
    to blink-rev...@chromium.org, blink-...@chromium.org, Blink WPT Bot, vmpstr, Chromium LUCI CQ, chromium...@chromium.org

    View Change

    1 comment:

    • Patchset:

    To view, visit change 2858763. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I53cf79cf10b778755f1798ae68443c7eb2c572b6
    Gerrit-Change-Number: 2858763
    Gerrit-PatchSet: 9
    Gerrit-Owner: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: vmpstr <vmp...@chromium.org>
    Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
    Gerrit-Comment-Date: Tue, 07 Sep 2021 20:26:05 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Gerrit-MessageType: comment

    Joey Arhar (Gerrit)

    unread,
    Sep 17, 2021, 6:07:05 PM9/17/21
    to blink-rev...@chromium.org, blink-...@chromium.org, Blink WPT Bot, vmpstr, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: vmpstr.

    View Change

    2 comments:

    • Patchset:

      • Nevermind, its already behind the beforematch flag.

    • File third_party/blink/renderer/core/html/html_element.cc:

      • The problem I think is that we are probably throttling the frame because of the hidden ancestor. […]

        I want to address this for both auto-expanding details and hidden=until-found in a separate patch. Is it ok if we land this as is? I filed a bug here: https://bugs.chromium.org/p/chromium/issues/detail?id=1250847

    To view, visit change 2858763. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I53cf79cf10b778755f1798ae68443c7eb2c572b6
    Gerrit-Change-Number: 2858763
    Gerrit-PatchSet: 9
    Gerrit-Owner: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: vmpstr <vmp...@chromium.org>
    Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
    Gerrit-Attention: vmpstr <vmp...@chromium.org>
    Gerrit-Comment-Date: Fri, 17 Sep 2021 22:06:56 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No

    Joey Arhar (Gerrit)

    unread,
    Sep 17, 2021, 6:13:07 PM9/17/21
    to blink-rev...@chromium.org, blink-...@chromium.org, Blink WPT Bot, vmpstr, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: vmpstr.

    View Change

    1 comment:

    • File third_party/blink/renderer/core/editing/finder/text_finder.cc:

    To view, visit change 2858763. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I53cf79cf10b778755f1798ae68443c7eb2c572b6
    Gerrit-Change-Number: 2858763
    Gerrit-PatchSet: 9
    Gerrit-Owner: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: vmpstr <vmp...@chromium.org>
    Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
    Gerrit-Attention: vmpstr <vmp...@chromium.org>
    Gerrit-Comment-Date: Fri, 17 Sep 2021 22:12:58 +0000

    vmpstr (Gerrit)

    unread,
    Sep 20, 2021, 10:45:34 AM9/20/21
    to Joey Arhar, blink-rev...@chromium.org, blink-...@chromium.org, Blink WPT Bot, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Joey Arhar.

    View Change

    2 comments:

    • File third_party/blink/renderer/core/html/html_element.cc:

      • I want to address this for both auto-expanding details and hidden=until-found in a separate patch. […]

        Yep that's fine, reference the bug here? with a comment explaining

    • File third_party/blink/renderer/core/html/html_element.cc:

      • Patch Set #9, Line 2060: bool HTMLElement::RevealHiddenUntilFoundAncestors(const Node& node) {

        This function is probably better suited for DisplayLockUtilities. WDYT?

    To view, visit change 2858763. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I53cf79cf10b778755f1798ae68443c7eb2c572b6
    Gerrit-Change-Number: 2858763
    Gerrit-PatchSet: 9
    Gerrit-Owner: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: vmpstr <vmp...@chromium.org>
    Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
    Gerrit-Attention: Joey Arhar <jar...@chromium.org>
    Gerrit-Comment-Date: Mon, 20 Sep 2021 14:45:24 +0000

    Joey Arhar (Gerrit)

    unread,
    Sep 20, 2021, 1:06:25 PM9/20/21
    to blink-rev...@chromium.org, blink-...@chromium.org, Blink WPT Bot, vmpstr, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: vmpstr.

    View Change

    2 comments:

    • File third_party/blink/renderer/core/html/html_element.cc:

      • Yep that's fine, reference the bug here? with a comment explaining

        I added a TODO in TextFinder because the issue is more relevant to the code there than it is to the code here.

    • File third_party/blink/renderer/core/html/html_element.cc:

      • This function is probably better suited for DisplayLockUtilities. […]

        Done

    To view, visit change 2858763. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I53cf79cf10b778755f1798ae68443c7eb2c572b6
    Gerrit-Change-Number: 2858763
    Gerrit-PatchSet: 9
    Gerrit-Owner: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: vmpstr <vmp...@chromium.org>
    Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
    Gerrit-Attention: vmpstr <vmp...@chromium.org>
    Gerrit-Comment-Date: Mon, 20 Sep 2021 17:06:14 +0000

    vmpstr (Gerrit)

    unread,
    Sep 20, 2021, 1:53:28 PM9/20/21
    to Joey Arhar, blink-rev...@chromium.org, blink-...@chromium.org, Blink WPT Bot, Chromium LUCI CQ, chromium...@chromium.org

    Attention is currently required from: Joey Arhar.

    Patch set 10:Code-Review +1

    View Change

    1 comment:

    • File third_party/blink/renderer/core/editing/finder/text_finder.cc:

    To view, visit change 2858763. To unsubscribe, or for help writing mail filters, visit settings.

    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I53cf79cf10b778755f1798ae68443c7eb2c572b6
    Gerrit-Change-Number: 2858763
    Gerrit-PatchSet: 10
    Gerrit-Owner: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
    Gerrit-Reviewer: vmpstr <vmp...@chromium.org>
    Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
    Gerrit-Attention: Joey Arhar <jar...@chromium.org>
    Gerrit-Comment-Date: Mon, 20 Sep 2021 17:53:16 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes

    Joey Arhar (Gerrit)

    unread,
    Sep 21, 2021, 6:28:06 PM9/21/21
    to blink-rev...@chromium.org, blink-...@chromium.org, vmpstr, Blink WPT Bot, Chromium LUCI CQ, chromium...@chromium.org

    Patch set 10:Commit-Queue +2

    View Change

      To view, visit change 2858763. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I53cf79cf10b778755f1798ae68443c7eb2c572b6
      Gerrit-Change-Number: 2858763
      Gerrit-PatchSet: 10
      Gerrit-Owner: Joey Arhar <jar...@chromium.org>
      Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
      Gerrit-Reviewer: vmpstr <vmp...@chromium.org>
      Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
      Gerrit-Comment-Date: Tue, 21 Sep 2021 22:27:58 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      Gerrit-MessageType: comment

      Joey Arhar (Gerrit)

      unread,
      Sep 21, 2021, 6:30:25 PM9/21/21
      to blink-rev...@chromium.org, blink-...@chromium.org

      Joey Arhar uploaded patch set #11 to this change.

      View Change

      Implement hidden=until-found for find-in-page and ElementFragments

      This patch implements the hidden=until-found attribute, which is a
      replacement for the content-visibility:hidden-matchable CSS property
      with two key differences:
      1. It's an HTML attribute instead of a CSS property.
      2. The attribute is automatically removed by the browser when the
      content is revealed, instead of requiring the page to remove it.

      Bug: 1055002
      Change-Id: I53cf79cf10b778755f1798ae68443c7eb2c572b6
      ---
      M third_party/blink/renderer/core/display_lock/display_lock_context.cc
      M third_party/blink/renderer/core/display_lock/display_lock_context.h
      M third_party/blink/renderer/core/display_lock/display_lock_utilities.cc
      M third_party/blink/renderer/core/display_lock/display_lock_utilities.h

      M third_party/blink/renderer/core/dom/element.cc
      M third_party/blink/renderer/core/editing/finder/text_finder.cc
      M third_party/blink/renderer/core/html/html_details_element.cc
      M third_party/blink/renderer/core/html/html_element.cc
      M third_party/blink/renderer/core/page/scrolling/element_fragment_anchor.cc
      A third_party/blink/web_tests/editing/text-iterator/auto-expand-until-found.html
      A third_party/blink/web_tests/editing/text-iterator/hidden-until-found-around-iframe-expected.txt
      A third_party/blink/web_tests/editing/text-iterator/hidden-until-found-around-iframe.html
      A third_party/blink/web_tests/editing/text-iterator/hidden-until-found-beforematch.html
      A third_party/blink/web_tests/editing/text-iterator/hidden-until-found-within-iframe-expected.txt
      A third_party/blink/web_tests/editing/text-iterator/hidden-until-found-within-iframe.html
      A third_party/blink/web_tests/editing/text-iterator/resources/hidden-until-found-around-iframe-source.html
      A third_party/blink/web_tests/editing/text-iterator/resources/hidden-until-found-within-iframe-source.html
      A third_party/blink/web_tests/wpt_internal/display-lock/beforematch/hidden-until-found-fragment-navigation-nested.html
      A third_party/blink/web_tests/wpt_internal/display-lock/beforematch/hidden-until-found-fragment-navigation.html
      19 files changed, 286 insertions(+), 20 deletions(-)

      To view, visit change 2858763. To unsubscribe, or for help writing mail filters, visit settings.

      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I53cf79cf10b778755f1798ae68443c7eb2c572b6
      Gerrit-Change-Number: 2858763
      Gerrit-PatchSet: 11
      Gerrit-Owner: Joey Arhar <jar...@chromium.org>
      Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
      Gerrit-Reviewer: vmpstr <vmp...@chromium.org>
      Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
      Gerrit-MessageType: newpatchset

      Joey Arhar (Gerrit)

      unread,
      Sep 22, 2021, 7:48:58 PM9/22/21
      to blink-rev...@chromium.org, blink-...@chromium.org, vmpstr, Blink WPT Bot, Chromium LUCI CQ, chromium...@chromium.org

      Patch set 11:Commit-Queue +2

      View Change

        To view, visit change 2858763. To unsubscribe, or for help writing mail filters, visit settings.

        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: I53cf79cf10b778755f1798ae68443c7eb2c572b6
        Gerrit-Change-Number: 2858763
        Gerrit-PatchSet: 11
        Gerrit-Owner: Joey Arhar <jar...@chromium.org>
        Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
        Gerrit-Reviewer: vmpstr <vmp...@chromium.org>
        Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
        Gerrit-Comment-Date: Wed, 22 Sep 2021 23:48:44 +0000

        Joey Arhar (Gerrit)

        unread,
        Sep 22, 2021, 8:09:21 PM9/22/21
        to blink-rev...@chromium.org, blink-...@chromium.org, vmpstr, Blink WPT Bot, Chromium LUCI CQ, chromium...@chromium.org

        Patch set 12:Commit-Queue +2

        View Change

          To view, visit change 2858763. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I53cf79cf10b778755f1798ae68443c7eb2c572b6
          Gerrit-Change-Number: 2858763
          Gerrit-PatchSet: 12
          Gerrit-Owner: Joey Arhar <jar...@chromium.org>
          Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
          Gerrit-Reviewer: vmpstr <vmp...@chromium.org>
          Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
          Gerrit-Comment-Date: Thu, 23 Sep 2021 00:09:11 +0000

          Chromium LUCI CQ (Gerrit)

          unread,
          Sep 22, 2021, 9:50:12 PM9/22/21
          to Joey Arhar, blink-rev...@chromium.org, blink-...@chromium.org, vmpstr, Blink WPT Bot, chromium...@chromium.org

          Chromium LUCI CQ submitted this change.

          View Change



          10 is the latest approved patch-set.
          No files were changed between the latest approved patch-set and the submitted one.

          Approvals: vmpstr: Looks good to me Joey Arhar: Commit
          Implement hidden=until-found for find-in-page and ElementFragments

          This patch implements the hidden=until-found attribute, which is a
          replacement for the content-visibility:hidden-matchable CSS property
          with two key differences:
          1. It's an HTML attribute instead of a CSS property.
          2. The attribute is automatically removed by the browser when the
          content is revealed, instead of requiring the page to remove it.

          Bug: 1055002
          Change-Id: I53cf79cf10b778755f1798ae68443c7eb2c572b6
          Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2858763
          Commit-Queue: Joey Arhar <jar...@chromium.org>
          Reviewed-by: vmpstr <vmp...@chromium.org>
          Cr-Commit-Position: refs/heads/main@{#924142}

          ---
          M third_party/blink/renderer/core/display_lock/display_lock_context.cc
          M third_party/blink/renderer/core/display_lock/display_lock_context.h
          M third_party/blink/renderer/core/display_lock/display_lock_utilities.cc
          M third_party/blink/renderer/core/display_lock/display_lock_utilities.h
          M third_party/blink/renderer/core/dom/element.cc
          M third_party/blink/renderer/core/editing/finder/text_finder.cc
          M third_party/blink/renderer/core/html/html_details_element.cc
          M third_party/blink/renderer/core/html/html_element.cc
          M third_party/blink/renderer/core/page/scrolling/element_fragment_anchor.cc
          A third_party/blink/web_tests/editing/text-iterator/auto-expand-until-found.html
          A third_party/blink/web_tests/editing/text-iterator/hidden-until-found-around-iframe-expected.txt
          A third_party/blink/web_tests/editing/text-iterator/hidden-until-found-around-iframe.html
          A third_party/blink/web_tests/editing/text-iterator/hidden-until-found-beforematch.html
          A third_party/blink/web_tests/editing/text-iterator/hidden-until-found-within-iframe-expected.txt
          A third_party/blink/web_tests/editing/text-iterator/hidden-until-found-within-iframe.html
          A third_party/blink/web_tests/editing/text-iterator/resources/hidden-until-found-around-iframe-source.html
          A third_party/blink/web_tests/editing/text-iterator/resources/hidden-until-found-within-iframe-source.html
          A third_party/blink/web_tests/wpt_internal/display-lock/beforematch/hidden-until-found-fragment-navigation-nested.html
          A third_party/blink/web_tests/wpt_internal/display-lock/beforematch/hidden-until-found-fragment-navigation.html
          19 files changed, 286 insertions(+), 20 deletions(-)


          To view, visit change 2858763. To unsubscribe, or for help writing mail filters, visit settings.

          Gerrit-Project: chromium/src
          Gerrit-Branch: main
          Gerrit-Change-Id: I53cf79cf10b778755f1798ae68443c7eb2c572b6
          Gerrit-Change-Number: 2858763
          Gerrit-PatchSet: 13
          Gerrit-Owner: Joey Arhar <jar...@chromium.org>
          Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
          Gerrit-Reviewer: Joey Arhar <jar...@chromium.org>
          Gerrit-Reviewer: vmpstr <vmp...@chromium.org>
          Gerrit-CC: Blink WPT Bot <blink-w3c-te...@chromium.org>
          Gerrit-MessageType: merged
          Reply all
          Reply to author
          Forward
          0 new messages