Implement Element.matchContainer [chromium/src : main]

38 views
Skip to first unread message

Oriol Brufau (Gerrit)

unread,
Apr 6, 2026, 5:29:48 PMApr 6
to Seokho Song, AyeAye, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, blink-revi...@chromium.org, net-r...@chromium.org, blink-revie...@chromium.org, android-web...@chromium.org, peter+watch...@chromium.org, ashleynewson+w...@chromium.org, apavlo...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, dtapuska+...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
Attention needed from Seokho Song

Oriol Brufau added 2 comments

Patchset-level comments
File android_webview/test/data/web_tests/virtual/stable/webexposed/global-interface-listing-expected.txt
Line 1255, Patchset 27 (Latest):interface ContainerQueryListEvent : Event
Oriol Brufau . unresolved

I don't think this should be exposed to stable before shipping

Open in Gerrit

Related details

Attention is currently required from:
  • Seokho Song
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I8f74b8650f10cc49b82f617b9b9b88281b2d6b63
Gerrit-Change-Number: 7656126
Gerrit-PatchSet: 27
Gerrit-Owner: Seokho Song <seo...@chromium.org>
Gerrit-Reviewer: Seokho Song <seo...@chromium.org>
Gerrit-CC: Kentaro Hara <har...@chromium.org>
Gerrit-CC: Menard, Alexis <alexis...@intel.com>
Gerrit-CC: Oriol Brufau <obr...@igalia.com>
Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
Gerrit-Attention: Seokho Song <seo...@chromium.org>
Gerrit-Comment-Date: Mon, 06 Apr 2026 21:29:27 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Seokho Song (Gerrit)

unread,
Apr 9, 2026, 3:20:31 AMApr 9
to Oriol Brufau, AyeAye, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, blink-revi...@chromium.org, net-r...@chromium.org, blink-revie...@chromium.org, android-web...@chromium.org, peter+watch...@chromium.org, ashleynewson+w...@chromium.org, apavlo...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, dtapuska+...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
Attention needed from Oriol Brufau

Seokho Song added 2 comments

Patchset-level comments
Oriol Brufau . resolved

This is increasing the compile size too much: https://ci.chromium.org/ui/p/chromium/builders/try/compile-size/561145/infra

Seokho Song

Ah yes. Fixed via removing Forward declaration and remove unnecessary includes

File android_webview/test/data/web_tests/virtual/stable/webexposed/global-interface-listing-expected.txt
Line 1255, Patchset 27:interface ContainerQueryListEvent : Event
Oriol Brufau . resolved

I don't think this should be exposed to stable before shipping

Seokho Song

Done

Open in Gerrit

Related details

Attention is currently required from:
  • Oriol Brufau
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I8f74b8650f10cc49b82f617b9b9b88281b2d6b63
    Gerrit-Change-Number: 7656126
    Gerrit-PatchSet: 30
    Gerrit-Owner: Seokho Song <seo...@chromium.org>
    Gerrit-Reviewer: Seokho Song <seo...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Menard, Alexis <alexis...@intel.com>
    Gerrit-CC: Oriol Brufau <obr...@igalia.com>
    Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
    Gerrit-Attention: Oriol Brufau <obr...@igalia.com>
    Gerrit-Comment-Date: Thu, 09 Apr 2026 07:20:00 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Oriol Brufau <obr...@igalia.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Seokho Song (Gerrit)

    unread,
    Apr 14, 2026, 3:22:25 AM (13 days ago) Apr 14
    to Anders Hartvoll Ruud, Rune Lillesveen, Oriol Brufau, android-bu...@system.gserviceaccount.com, chromiu...@luci-project-accounts.iam.gserviceaccount.com, Menard, Alexis, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, blink-revi...@chromium.org, net-r...@chromium.org, blink-revie...@chromium.org, android-web...@chromium.org, peter+watch...@chromium.org, ashleynewson+w...@chromium.org, apavlo...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, dtapuska+...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
    Attention needed from Anders Hartvoll Ruud, Oriol Brufau and Rune Lillesveen

    Seokho Song added 1 comment

    Patchset-level comments
    File-level comment, Patchset 39 (Latest):
    Seokho Song . resolved

    Hi folks,

    I'd like to request an early review of the implementation approach. Since the spec is still [a work in progress](https://github.com/w3c/csswg-drafts/pull/13551#issuecomment-4235816324), the naming and API surface are subject to change. However, I'd appreciate your feedback on the overall logic and architecture at this stage. We can keep this CL as a draft until the spec is finalized, or I can split it into smaller CLs if preferred.

    Please take a look when you have a moment. Thanks!

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Anders Hartvoll Ruud
    • Oriol Brufau
    • Rune Lillesveen
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I8f74b8650f10cc49b82f617b9b9b88281b2d6b63
    Gerrit-Change-Number: 7656126
    Gerrit-PatchSet: 39
    Gerrit-Owner: Seokho Song <seo...@chromium.org>
    Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
    Gerrit-Reviewer: Rune Lillesveen <fut...@chromium.org>
    Gerrit-Reviewer: Seokho Song <seo...@chromium.org>
    Gerrit-CC: Kentaro Hara <har...@chromium.org>
    Gerrit-CC: Menard, Alexis <alexis...@intel.com>
    Gerrit-CC: Oriol Brufau <obr...@igalia.com>
    Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
    Gerrit-Attention: Anders Hartvoll Ruud <and...@chromium.org>
    Gerrit-Attention: Oriol Brufau <obr...@igalia.com>
    Gerrit-Attention: Rune Lillesveen <fut...@chromium.org>
    Gerrit-Comment-Date: Tue, 14 Apr 2026 07:21:52 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Seokho Song (Gerrit)

    unread,
    Apr 14, 2026, 3:23:34 AM (13 days ago) Apr 14
    to Anders Hartvoll Ruud, Rune Lillesveen, Oriol Brufau, android-bu...@system.gserviceaccount.com, chromiu...@luci-project-accounts.iam.gserviceaccount.com, Menard, Alexis, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, blink-revi...@chromium.org, net-r...@chromium.org, blink-revie...@chromium.org, android-web...@chromium.org, peter+watch...@chromium.org, ashleynewson+w...@chromium.org, apavlo...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, dtapuska+...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
    Attention needed from Anders Hartvoll Ruud, Oriol Brufau and Rune Lillesveen

    Seokho Song added 1 comment

    Patchset-level comments
    Seokho Song . resolved

    Hi folks,

    I'd like to request an early review of the implementation approach. Since the spec is still [a work in progress](https://github.com/w3c/csswg-drafts/pull/13551#issuecomment-4235816324), the naming and API surface are subject to change. However, I'd appreciate your feedback on the overall logic and architecture at this stage. We can keep this CL as a draft until the spec is finalized, or I can split it into smaller CLs if preferred.

    Please take a look when you have a moment. Thanks!

    Seokho Song

    +A CSSWG expert will be reviewing the spec side of this soon

    Gerrit-Comment-Date: Tue, 14 Apr 2026 07:23:08 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Seokho Song <seo...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Anders Hartvoll Ruud (Gerrit)

    unread,
    Apr 14, 2026, 10:23:09 AM (13 days ago) Apr 14
    to Seokho Song, Rune Lillesveen, Oriol Brufau, android-bu...@system.gserviceaccount.com, chromiu...@luci-project-accounts.iam.gserviceaccount.com, Menard, Alexis, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, blink-revi...@chromium.org, net-r...@chromium.org, blink-revie...@chromium.org, android-web...@chromium.org, peter+watch...@chromium.org, ashleynewson+w...@chromium.org, apavlo...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, dtapuska+...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
    Attention needed from Oriol Brufau, Rune Lillesveen and Seokho Song

    Anders Hartvoll Ruud added 2 comments

    Patchset-level comments
    Seokho Song . unresolved

    Hi folks,

    I'd like to request an early review of the implementation approach. Since the spec is still [a work in progress](https://github.com/w3c/csswg-drafts/pull/13551#issuecomment-4235816324), the naming and API surface are subject to change. However, I'd appreciate your feedback on the overall logic and architecture at this stage. We can keep this CL as a draft until the spec is finalized, or I can split it into smaller CLs if preferred.

    Please take a look when you have a moment. Thanks!

    Seokho Song

    +A CSSWG expert will be reviewing the spec side of this soon

    Anders Hartvoll Ruud

    I indeed think you should split this up. For example, defer everything related to events to the next CL. (But you know better how to split this up.)

    File third_party/blink/renderer/core/css/container_query_evaluator.cc
    Line 378, Patchset 39 (Latest): ContainerFeaturesChanged();
    Anders Hartvoll Ruud . unresolved

    I don't think we can queue events in the middle of style recalc like this. This can happen any number of times due to speculative styling, before we finally change our mind about the result.

    The timing of these events need to be specified.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Oriol Brufau
    • Rune Lillesveen
    • Seokho Song
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I8f74b8650f10cc49b82f617b9b9b88281b2d6b63
      Gerrit-Change-Number: 7656126
      Gerrit-PatchSet: 39
      Gerrit-Owner: Seokho Song <seo...@chromium.org>
      Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-Reviewer: Rune Lillesveen <fut...@chromium.org>
      Gerrit-Reviewer: Seokho Song <seo...@chromium.org>
      Gerrit-CC: Kentaro Hara <har...@chromium.org>
      Gerrit-CC: Menard, Alexis <alexis...@intel.com>
      Gerrit-CC: Oriol Brufau <obr...@igalia.com>
      Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
      Gerrit-Attention: Oriol Brufau <obr...@igalia.com>
      Gerrit-Attention: Rune Lillesveen <fut...@chromium.org>
      Gerrit-Attention: Seokho Song <seo...@chromium.org>
      Gerrit-Comment-Date: Tue, 14 Apr 2026 14:22:52 +0000
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Seokho Song (Gerrit)

      unread,
      Apr 15, 2026, 3:25:23 AM (12 days ago) Apr 15
      to Anders Hartvoll Ruud, Rune Lillesveen, Oriol Brufau, android-bu...@system.gserviceaccount.com, chromiu...@luci-project-accounts.iam.gserviceaccount.com, Menard, Alexis, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, blink-revi...@chromium.org, net-r...@chromium.org, blink-revie...@chromium.org, android-web...@chromium.org, peter+watch...@chromium.org, ashleynewson+w...@chromium.org, apavlo...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, dtapuska+...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
      Attention needed from Anders Hartvoll Ruud, Oriol Brufau and Rune Lillesveen

      Seokho Song added 1 comment

      Patchset-level comments
      Seokho Song . unresolved

      Hi folks,

      I'd like to request an early review of the implementation approach. Since the spec is still [a work in progress](https://github.com/w3c/csswg-drafts/pull/13551#issuecomment-4235816324), the naming and API surface are subject to change. However, I'd appreciate your feedback on the overall logic and architecture at this stage. We can keep this CL as a draft until the spec is finalized, or I can split it into smaller CLs if preferred.

      Please take a look when you have a moment. Thanks!

      Seokho Song

      +A CSSWG expert will be reviewing the spec side of this soon

      Anders Hartvoll Ruud

      I indeed think you should split this up. For example, defer everything related to events to the next CL. (But you know better how to split this up.)

      Seokho Song

      Yeah, that's a good idea. I'll remove the WPT case and the EnqueueUniqueAnimationFrameEvent() call in this CL to defer the implementation mentioned in the other comment.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Anders Hartvoll Ruud
      • Oriol Brufau
      • Rune Lillesveen
      Gerrit-Attention: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-Attention: Oriol Brufau <obr...@igalia.com>
      Gerrit-Attention: Rune Lillesveen <fut...@chromium.org>
      Gerrit-Comment-Date: Wed, 15 Apr 2026 07:24:59 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Anders Hartvoll Ruud <and...@chromium.org>
      Comment-In-Reply-To: Seokho Song <seo...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Seokho Song (Gerrit)

      unread,
      Apr 15, 2026, 3:36:44 AM (12 days ago) Apr 15
      to Anders Hartvoll Ruud, Rune Lillesveen, Oriol Brufau, android-bu...@system.gserviceaccount.com, chromiu...@luci-project-accounts.iam.gserviceaccount.com, Menard, Alexis, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, blink-revi...@chromium.org, net-r...@chromium.org, blink-revie...@chromium.org, android-web...@chromium.org, peter+watch...@chromium.org, ashleynewson+w...@chromium.org, apavlo...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, dtapuska+...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
      Attention needed from Anders Hartvoll Ruud, Oriol Brufau and Rune Lillesveen

      Seokho Song added 1 comment

      File third_party/blink/renderer/core/css/container_query_evaluator.cc
      Line 378, Patchset 39: ContainerFeaturesChanged();
      Anders Hartvoll Ruud . unresolved

      I don't think we can queue events in the middle of style recalc like this. This can happen any number of times due to speculative styling, before we finally change our mind about the result.

      The timing of these events need to be specified.

      Seokho Song

      I have draft...comment here but just vanished.., anyway..

      Hmm, probably the right place to fire the event should be the same as matchMedia's? `Document::UpdateStyleAndLayoutTreeForThisDocument()` -> `Document::EvaluateMediaQueryListIfNeeded()`
      The idea is to mark them as changed in this place and fire the event after recalc same with matchMedia. Do you think it is feasible?

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Anders Hartvoll Ruud
      • Oriol Brufau
      • Rune Lillesveen
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I8f74b8650f10cc49b82f617b9b9b88281b2d6b63
      Gerrit-Change-Number: 7656126
      Gerrit-PatchSet: 40
      Gerrit-Owner: Seokho Song <seo...@chromium.org>
      Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-Reviewer: Rune Lillesveen <fut...@chromium.org>
      Gerrit-Reviewer: Seokho Song <seo...@chromium.org>
      Gerrit-CC: Kentaro Hara <har...@chromium.org>
      Gerrit-CC: Menard, Alexis <alexis...@intel.com>
      Gerrit-CC: Oriol Brufau <obr...@igalia.com>
      Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
      Gerrit-Attention: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-Attention: Oriol Brufau <obr...@igalia.com>
      Gerrit-Attention: Rune Lillesveen <fut...@chromium.org>
      Gerrit-Comment-Date: Wed, 15 Apr 2026 07:36:08 +0000
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Anders Hartvoll Ruud (Gerrit)

      unread,
      Apr 15, 2026, 5:12:59 AM (12 days ago) Apr 15
      to Seokho Song, Rune Lillesveen, Oriol Brufau, android-bu...@system.gserviceaccount.com, chromiu...@luci-project-accounts.iam.gserviceaccount.com, Menard, Alexis, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, blink-revi...@chromium.org, net-r...@chromium.org, blink-revie...@chromium.org, android-web...@chromium.org, peter+watch...@chromium.org, ashleynewson+w...@chromium.org, apavlo...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, dtapuska+...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
      Attention needed from Oriol Brufau, Rune Lillesveen and Seokho Song

      Anders Hartvoll Ruud added 1 comment

      File third_party/blink/renderer/core/css/container_query_evaluator.cc
      Line 378, Patchset 39: ContainerFeaturesChanged();
      Anders Hartvoll Ruud . unresolved

      I don't think we can queue events in the middle of style recalc like this. This can happen any number of times due to speculative styling, before we finally change our mind about the result.

      The timing of these events need to be specified.

      Seokho Song

      I have draft...comment here but just vanished.., anyway..

      Hmm, probably the right place to fire the event should be the same as matchMedia's? `Document::UpdateStyleAndLayoutTreeForThisDocument()` -> `Document::EvaluateMediaQueryListIfNeeded()`
      The idea is to mark them as changed in this place and fire the event after recalc same with matchMedia. Do you think it is feasible?

      Anders Hartvoll Ruud

      Hmm, probably the right place to fire the event should be the same as matchMedia

      No, that happens _before_ style and layout. That's fine for media, since it doesn't depend on style, but container queries _do_ depend on style, so it's not that simple. It probably needs to work more like ResizeObserver.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Oriol Brufau
      • Rune Lillesveen
      • Seokho Song
      Gerrit-Attention: Oriol Brufau <obr...@igalia.com>
      Gerrit-Attention: Rune Lillesveen <fut...@chromium.org>
      Gerrit-Attention: Seokho Song <seo...@chromium.org>
      Gerrit-Comment-Date: Wed, 15 Apr 2026 09:12:45 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      Comment-In-Reply-To: Anders Hartvoll Ruud <and...@chromium.org>
      Comment-In-Reply-To: Seokho Song <seo...@chromium.org>
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Seokho Song (Gerrit)

      unread,
      Apr 16, 2026, 3:40:01 AM (11 days ago) Apr 16
      to Anders Hartvoll Ruud, Oriol Brufau, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, blink-revi...@chromium.org, net-r...@chromium.org, blink-revie...@chromium.org, android-web...@chromium.org, peter+watch...@chromium.org, ashleynewson+w...@chromium.org, apavlo...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, dtapuska+...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
      Attention needed from Anders Hartvoll Ruud and Oriol Brufau

      Seokho Song added 2 comments

      Patchset-level comments
      Seokho Song . unresolved

      Hi folks,

      I'd like to request an early review of the implementation approach. Since the spec is still [a work in progress](https://github.com/w3c/csswg-drafts/pull/13551#issuecomment-4235816324), the naming and API surface are subject to change. However, I'd appreciate your feedback on the overall logic and architecture at this stage. We can keep this CL as a draft until the spec is finalized, or I can split it into smaller CLs if preferred.

      Please take a look when you have a moment. Thanks!

      Seokho Song

      +A CSSWG expert will be reviewing the spec side of this soon

      Anders Hartvoll Ruud

      I indeed think you should split this up. For example, defer everything related to events to the next CL. (But you know better how to split this up.)

      Seokho Song

      Yeah, that's a good idea. I'll remove the WPT case and the EnqueueUniqueAnimationFrameEvent() call in this CL to defer the implementation mentioned in the other comment.

      Seokho Song

      Back WPTs and some impls. I will revert it with PoC after PoC done.

      File third_party/blink/renderer/core/css/container_query_evaluator.cc
      Line 378, Patchset 39: ContainerFeaturesChanged();
      Anders Hartvoll Ruud . unresolved

      I don't think we can queue events in the middle of style recalc like this. This can happen any number of times due to speculative styling, before we finally change our mind about the result.

      The timing of these events need to be specified.

      Seokho Song

      I have draft...comment here but just vanished.., anyway..

      Hmm, probably the right place to fire the event should be the same as matchMedia's? `Document::UpdateStyleAndLayoutTreeForThisDocument()` -> `Document::EvaluateMediaQueryListIfNeeded()`
      The idea is to mark them as changed in this place and fire the event after recalc same with matchMedia. Do you think it is feasible?

      Anders Hartvoll Ruud

      Hmm, probably the right place to fire the event should be the same as matchMedia

      No, that happens _before_ style and layout. That's fine for media, since it doesn't depend on style, but container queries _do_ depend on style, so it's not that simple. It probably needs to work more like ResizeObserver.

      Seokho Song

      I've uploaded a new PatchSet as a PoC. The core idea is:

      Deferring the evaluation and firing of the event until after the style and layout phases are fully resolved. Since `ContainerQueryEvaluator` evaluates and stores the final computed values (e.g., size), we simply collect the "dirty" `ContainerQueryList` targets in a Set during style recalc. Then, at the end of the lifecycle loop, we sweep this Set, evaluate the final state, and fire any necessary events, likely the timing `ResizeObserver` uses. (I assume this is a spec-defined behavior? Probably this one [1]? If so, should we define the exact timing for our case too? Is this what you meant by "The timing of these events needs to be specified"?)

      For the PoC, I placed the tracking Set and logic directly into `Document`. It would probably be better to place this into `-Controller` (similar to `ResizeObserverController`).

      WDYT about this approach?

      [1] https://drafts.csswg.org/resize-observer/#broadcast-resize-notifications-h

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Anders Hartvoll Ruud
      • Oriol Brufau
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I8f74b8650f10cc49b82f617b9b9b88281b2d6b63
      Gerrit-Change-Number: 7656126
      Gerrit-PatchSet: 42
      Gerrit-Owner: Seokho Song <seo...@chromium.org>
      Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-Reviewer: Seokho Song <seo...@chromium.org>
      Gerrit-CC: Kentaro Hara <har...@chromium.org>
      Gerrit-CC: Menard, Alexis <alexis...@intel.com>
      Gerrit-CC: Oriol Brufau <obr...@igalia.com>
      Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
      Gerrit-Attention: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-Attention: Oriol Brufau <obr...@igalia.com>
      Gerrit-Comment-Date: Thu, 16 Apr 2026 07:39:28 +0000
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Anders Hartvoll Ruud (Gerrit)

      unread,
      Apr 20, 2026, 5:35:01 AM (7 days ago) Apr 20
      to Seokho Song, Oriol Brufau, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, blink-revi...@chromium.org, net-r...@chromium.org, blink-revie...@chromium.org, android-web...@chromium.org, peter+watch...@chromium.org, ashleynewson+w...@chromium.org, apavlo...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, dtapuska+...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
      Attention needed from Oriol Brufau and Seokho Song

      Anders Hartvoll Ruud added 1 comment

      File third_party/blink/renderer/core/css/container_query_evaluator.cc
      Line 378, Patchset 39: ContainerFeaturesChanged();
      Anders Hartvoll Ruud . unresolved

      I don't think we can queue events in the middle of style recalc like this. This can happen any number of times due to speculative styling, before we finally change our mind about the result.

      The timing of these events need to be specified.

      Seokho Song

      I have draft...comment here but just vanished.., anyway..

      Hmm, probably the right place to fire the event should be the same as matchMedia's? `Document::UpdateStyleAndLayoutTreeForThisDocument()` -> `Document::EvaluateMediaQueryListIfNeeded()`
      The idea is to mark them as changed in this place and fire the event after recalc same with matchMedia. Do you think it is feasible?

      Anders Hartvoll Ruud

      Hmm, probably the right place to fire the event should be the same as matchMedia

      No, that happens _before_ style and layout. That's fine for media, since it doesn't depend on style, but container queries _do_ depend on style, so it's not that simple. It probably needs to work more like ResizeObserver.

      Seokho Song

      I've uploaded a new PatchSet as a PoC. The core idea is:

      Deferring the evaluation and firing of the event until after the style and layout phases are fully resolved. Since `ContainerQueryEvaluator` evaluates and stores the final computed values (e.g., size), we simply collect the "dirty" `ContainerQueryList` targets in a Set during style recalc. Then, at the end of the lifecycle loop, we sweep this Set, evaluate the final state, and fire any necessary events, likely the timing `ResizeObserver` uses. (I assume this is a spec-defined behavior? Probably this one [1]? If so, should we define the exact timing for our case too? Is this what you meant by "The timing of these events needs to be specified"?)

      For the PoC, I placed the tracking Set and logic directly into `Document`. It would probably be better to place this into `-Controller` (similar to `ResizeObserverController`).

      WDYT about this approach?

      [1] https://drafts.csswg.org/resize-observer/#broadcast-resize-notifications-h

      Anders Hartvoll Ruud

      Yes, something along those lines, although timing issues are a CSSWG/standards decision, not a Blink decision. I will have to look more closely at the details later. For now (for the first CL), I still think we should remove anything that involves events/dirtying, etc.

       If so, should we define the exact timing for our case too? Is this what you meant by "The timing of these events needs to be specified"?

      Yes, exactly. We also need to know if the event can be fired multiple times in the same frame (like RO), and if so, what mechanism guarantees that the process actually finishes.

      The necessity of being technically similar to RO is the reason why I'm skeptical that this API should exist in the first place ...

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Oriol Brufau
      • Seokho Song
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I8f74b8650f10cc49b82f617b9b9b88281b2d6b63
      Gerrit-Change-Number: 7656126
      Gerrit-PatchSet: 42
      Gerrit-Owner: Seokho Song <seo...@chromium.org>
      Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-Reviewer: Seokho Song <seo...@chromium.org>
      Gerrit-CC: Kentaro Hara <har...@chromium.org>
      Gerrit-CC: Menard, Alexis <alexis...@intel.com>
      Gerrit-CC: Oriol Brufau <obr...@igalia.com>
      Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
      Gerrit-Attention: Oriol Brufau <obr...@igalia.com>
      Gerrit-Attention: Seokho Song <seo...@chromium.org>
      Gerrit-Comment-Date: Mon, 20 Apr 2026 09:34:46 +0000
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Seokho Song (Gerrit)

      unread,
      Apr 20, 2026, 7:39:03 AM (7 days ago) Apr 20
      to Anders Hartvoll Ruud, Oriol Brufau, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, blink-revi...@chromium.org, net-r...@chromium.org, blink-revie...@chromium.org, android-web...@chromium.org, peter+watch...@chromium.org, ashleynewson+w...@chromium.org, apavlo...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, dtapuska+...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
      Attention needed from Anders Hartvoll Ruud and Oriol Brufau

      Seokho Song added 1 comment

      File third_party/blink/renderer/core/css/container_query_evaluator.cc
      Line 378, Patchset 39: ContainerFeaturesChanged();
      Anders Hartvoll Ruud . unresolved

      I don't think we can queue events in the middle of style recalc like this. This can happen any number of times due to speculative styling, before we finally change our mind about the result.

      The timing of these events need to be specified.

      Seokho Song

      I have draft...comment here but just vanished.., anyway..

      Hmm, probably the right place to fire the event should be the same as matchMedia's? `Document::UpdateStyleAndLayoutTreeForThisDocument()` -> `Document::EvaluateMediaQueryListIfNeeded()`
      The idea is to mark them as changed in this place and fire the event after recalc same with matchMedia. Do you think it is feasible?

      Anders Hartvoll Ruud

      Hmm, probably the right place to fire the event should be the same as matchMedia

      No, that happens _before_ style and layout. That's fine for media, since it doesn't depend on style, but container queries _do_ depend on style, so it's not that simple. It probably needs to work more like ResizeObserver.

      Seokho Song

      I've uploaded a new PatchSet as a PoC. The core idea is:

      Deferring the evaluation and firing of the event until after the style and layout phases are fully resolved. Since `ContainerQueryEvaluator` evaluates and stores the final computed values (e.g., size), we simply collect the "dirty" `ContainerQueryList` targets in a Set during style recalc. Then, at the end of the lifecycle loop, we sweep this Set, evaluate the final state, and fire any necessary events, likely the timing `ResizeObserver` uses. (I assume this is a spec-defined behavior? Probably this one [1]? If so, should we define the exact timing for our case too? Is this what you meant by "The timing of these events needs to be specified"?)

      For the PoC, I placed the tracking Set and logic directly into `Document`. It would probably be better to place this into `-Controller` (similar to `ResizeObserverController`).

      WDYT about this approach?

      [1] https://drafts.csswg.org/resize-observer/#broadcast-resize-notifications-h

      Anders Hartvoll Ruud

      Yes, something along those lines, although timing issues are a CSSWG/standards decision, not a Blink decision. I will have to look more closely at the details later. For now (for the first CL), I still think we should remove anything that involves events/dirtying, etc.

       If so, should we define the exact timing for our case too? Is this what you meant by "The timing of these events needs to be specified"?

      Yes, exactly. We also need to know if the event can be fired multiple times in the same frame (like RO), and if so, what mechanism guarantees that the process actually finishes.

      The necessity of being technically similar to RO is the reason why I'm skeptical that this API should exist in the first place ...

      Seokho Song

      Thanks! I added a comment regarding the event timing to the [PR comment](https://github.com/w3c/csswg-drafts/pull/13551#issuecomment-4280237523) :)

      > For now (for the first CL), I still think we should remove anything that involves events/dirtying, etc.

      Yeah! Those were just for PoC purposes. I'll revert them shortly.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Anders Hartvoll Ruud
      • Oriol Brufau
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I8f74b8650f10cc49b82f617b9b9b88281b2d6b63
      Gerrit-Change-Number: 7656126
      Gerrit-PatchSet: 42
      Gerrit-Owner: Seokho Song <seo...@chromium.org>
      Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-Reviewer: Seokho Song <seo...@chromium.org>
      Gerrit-CC: Kentaro Hara <har...@chromium.org>
      Gerrit-CC: Menard, Alexis <alexis...@intel.com>
      Gerrit-CC: Oriol Brufau <obr...@igalia.com>
      Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
      Gerrit-Attention: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-Attention: Oriol Brufau <obr...@igalia.com>
      Gerrit-Comment-Date: Mon, 20 Apr 2026 11:38:23 +0000
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Seokho Song (Gerrit)

      unread,
      Apr 21, 2026, 7:54:53 AM (6 days ago) Apr 21
      to Anders Hartvoll Ruud, Oriol Brufau, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, blink-revi...@chromium.org, net-r...@chromium.org, blink-revie...@chromium.org, android-web...@chromium.org, peter+watch...@chromium.org, ashleynewson+w...@chromium.org, apavlo...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, dtapuska+...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
      Attention needed from Anders Hartvoll Ruud and Oriol Brufau

      Seokho Song added 2 comments

      Patchset-level comments
      File-level comment, Patchset 39:
      Seokho Song . resolved

      Hi folks,

      I'd like to request an early review of the implementation approach. Since the spec is still [a work in progress](https://github.com/w3c/csswg-drafts/pull/13551#issuecomment-4235816324), the naming and API surface are subject to change. However, I'd appreciate your feedback on the overall logic and architecture at this stage. We can keep this CL as a draft until the spec is finalized, or I can split it into smaller CLs if preferred.

      Please take a look when you have a moment. Thanks!

      Seokho Song

      +A CSSWG expert will be reviewing the spec side of this soon

      Anders Hartvoll Ruud

      I indeed think you should split this up. For example, defer everything related to events to the next CL. (But you know better how to split this up.)

      Seokho Song

      Yeah, that's a good idea. I'll remove the WPT case and the EnqueueUniqueAnimationFrameEvent() call in this CL to defer the implementation mentioned in the other comment.

      Seokho Song

      Back WPTs and some impls. I will revert it with PoC after PoC done.

      Seokho Song

      Reverted.

      File third_party/blink/renderer/core/css/container_query_evaluator.cc
      Seokho Song

      Reverted event-related changes, and left TODOs and NOTIMPLEMENTED(). The PoC is in ~PatchSet 42.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Anders Hartvoll Ruud
      • Oriol Brufau
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I8f74b8650f10cc49b82f617b9b9b88281b2d6b63
      Gerrit-Change-Number: 7656126
      Gerrit-PatchSet: 46
      Gerrit-Owner: Seokho Song <seo...@chromium.org>
      Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-Reviewer: Seokho Song <seo...@chromium.org>
      Gerrit-CC: Kentaro Hara <har...@chromium.org>
      Gerrit-CC: Menard, Alexis <alexis...@intel.com>
      Gerrit-CC: Oriol Brufau <obr...@igalia.com>
      Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
      Gerrit-Attention: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-Attention: Oriol Brufau <obr...@igalia.com>
      Gerrit-Comment-Date: Tue, 21 Apr 2026 11:54:20 +0000
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Anders Hartvoll Ruud (Gerrit)

      unread,
      Apr 24, 2026, 3:28:39 AM (3 days ago) Apr 24
      to Seokho Song, Oriol Brufau, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, blink-revi...@chromium.org, net-r...@chromium.org, blink-revie...@chromium.org, android-web...@chromium.org, peter+watch...@chromium.org, ashleynewson+w...@chromium.org, apavlo...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, dtapuska+...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
      Attention needed from Oriol Brufau and Seokho Song

      Anders Hartvoll Ruud added 1 comment

      File third_party/blink/renderer/core/css/container_query_evaluator.cc
      Anders Hartvoll Ruud

      OK, but this is still a lot. What is the _smallest_ first step we can make here?

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Oriol Brufau
      • Seokho Song
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I8f74b8650f10cc49b82f617b9b9b88281b2d6b63
      Gerrit-Change-Number: 7656126
      Gerrit-PatchSet: 46
      Gerrit-Owner: Seokho Song <seo...@chromium.org>
      Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-Reviewer: Seokho Song <seo...@chromium.org>
      Gerrit-CC: Kentaro Hara <har...@chromium.org>
      Gerrit-CC: Menard, Alexis <alexis...@intel.com>
      Gerrit-CC: Oriol Brufau <obr...@igalia.com>
      Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
      Gerrit-Attention: Oriol Brufau <obr...@igalia.com>
      Gerrit-Attention: Seokho Song <seo...@chromium.org>
      Gerrit-Comment-Date: Fri, 24 Apr 2026 07:28:26 +0000
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Seokho Song (Gerrit)

      unread,
      Apr 24, 2026, 3:44:08 AM (3 days ago) Apr 24
      to Anders Hartvoll Ruud, Oriol Brufau, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, blink-revi...@chromium.org, net-r...@chromium.org, blink-revie...@chromium.org, android-web...@chromium.org, peter+watch...@chromium.org, ashleynewson+w...@chromium.org, apavlo...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, dtapuska+...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
      Attention needed from Anders Hartvoll Ruud and Oriol Brufau

      Seokho Song added 1 comment

      File third_party/blink/renderer/core/css/container_query_evaluator.cc
      Seokho Song

      I suppose the smallest first step is:

      1. Adding a feature flag.
      2. Adding `matchContainer()` to Element with a implementation that returns null with `NOTIMPLEMENTED()`.
      (I think we may also need to define `ContainerQueryList` without details. Marking every details as `NOTIMPLEMENTED` ?).

      WDYT?

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Anders Hartvoll Ruud
      • Oriol Brufau
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I8f74b8650f10cc49b82f617b9b9b88281b2d6b63
      Gerrit-Change-Number: 7656126
      Gerrit-PatchSet: 46
      Gerrit-Owner: Seokho Song <seo...@chromium.org>
      Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-Reviewer: Seokho Song <seo...@chromium.org>
      Gerrit-CC: Kentaro Hara <har...@chromium.org>
      Gerrit-CC: Menard, Alexis <alexis...@intel.com>
      Gerrit-CC: Oriol Brufau <obr...@igalia.com>
      Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
      Gerrit-Attention: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-Attention: Oriol Brufau <obr...@igalia.com>
      Gerrit-Comment-Date: Fri, 24 Apr 2026 07:43:34 +0000
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Anders Hartvoll Ruud (Gerrit)

      unread,
      Apr 24, 2026, 5:13:21 AM (3 days ago) Apr 24
      to Seokho Song, Oriol Brufau, android-bu...@system.gserviceaccount.com, Chromium LUCI CQ, Menard, Alexis, chromium...@chromium.org, Kentaro Hara, Raphael Kubo da Costa, blink-revi...@chromium.org, net-r...@chromium.org, blink-revie...@chromium.org, android-web...@chromium.org, peter+watch...@chromium.org, ashleynewson+w...@chromium.org, apavlo...@chromium.org, blink-revie...@chromium.org, blink-re...@chromium.org, blink-re...@chromium.org, blink-revi...@chromium.org, blink-...@chromium.org, dtapuska+...@chromium.org, jmedle...@chromium.org, kinuko...@chromium.org
      Attention needed from Oriol Brufau and Seokho Song

      Anders Hartvoll Ruud added 1 comment

      File third_party/blink/renderer/core/css/container_query_evaluator.cc
      Anders Hartvoll Ruud

      Right, adding a feature flag alone may be the smallest step, but ideally each step gives us _something_ new to write tests against.

      So I think the smallest _meaningful_ step is to add just this:

      ```
      [
      ActiveScriptWrappable,
      RuntimeEnabled=ElementMatchContainer,
      Exposed=Window
      ] interface ContainerQueryList : EventTarget {
      readonly attribute boolean matches;
      };
      ```

      Reading `matching` should just evaluate the query to begin with (I assume the answer should be "live"?). We avoid anything related to events, raredata, caching, dirtiness. Those interactions need to be carefully thought about, tested, (specified), etc, so we have to ease into that.

      Marking every details as NOTIMPLEMENTED.

      Instead of placeholders with `NOTIMPLEMENTED()`, just omit the entire placeholder. (Except of course that which is strictly required to compile due to e.g. pure virtual functions, if any.)

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Oriol Brufau
      • Seokho Song
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: I8f74b8650f10cc49b82f617b9b9b88281b2d6b63
      Gerrit-Change-Number: 7656126
      Gerrit-PatchSet: 46
      Gerrit-Owner: Seokho Song <seo...@chromium.org>
      Gerrit-Reviewer: Anders Hartvoll Ruud <and...@chromium.org>
      Gerrit-Reviewer: Seokho Song <seo...@chromium.org>
      Gerrit-CC: Kentaro Hara <har...@chromium.org>
      Gerrit-CC: Menard, Alexis <alexis...@intel.com>
      Gerrit-CC: Oriol Brufau <obr...@igalia.com>
      Gerrit-CC: Raphael Kubo da Costa <ku...@igalia.com>
      Gerrit-Attention: Oriol Brufau <obr...@igalia.com>
      Gerrit-Attention: Seokho Song <seo...@chromium.org>
      Gerrit-Comment-Date: Fri, 24 Apr 2026 09:13:08 +0000
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy
      Reply all
      Reply to author
      Forward
      0 new messages