[PEPC] Relax 'display' value restrictions [chromium/src : main]

0 views
Skip to first unread message

Andy Paicu (Gerrit)

unread,
Jun 17, 2025, 8:10:10 AMJun 17
to Andy Paicu, Mason Freed, AyeAye, blink-...@chromium.org, blink-revie...@chromium.org, blink-rev...@chromium.org
Attention needed from Andy Paicu and Mason Freed

Andy Paicu voted Commit-Queue+1

Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Andy Paicu
  • Mason Freed
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
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: Ieee72b6bd5276ddc06bcd73705f969b59c707609
Gerrit-Change-Number: 6650971
Gerrit-PatchSet: 2
Gerrit-Owner: Andy Paicu <andy...@google.com>
Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
Gerrit-Attention: Andy Paicu <andy...@google.com>
Gerrit-Attention: Mason Freed <mas...@chromium.org>
Gerrit-Comment-Date: Tue, 17 Jun 2025 12:09:57 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Andy Paicu (Gerrit)

unread,
Jun 18, 2025, 5:15:32 AMJun 18
to Andy Paicu, Chromium LUCI CQ, Mason Freed, AyeAye, blink-...@chromium.org, blink-revie...@chromium.org, blink-rev...@chromium.org
Attention needed from Andy Paicu and Mason Freed

Andy Paicu voted Code-Review+1

Code-Review+1
Open in Gerrit

Related details

Attention is currently required from:
  • Andy Paicu
  • Mason Freed
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
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: Ieee72b6bd5276ddc06bcd73705f969b59c707609
Gerrit-Change-Number: 6650971
Gerrit-PatchSet: 4
Gerrit-Owner: Andy Paicu <andy...@google.com>
Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
Gerrit-Attention: Andy Paicu <andy...@google.com>
Gerrit-Attention: Mason Freed <mas...@chromium.org>
Gerrit-Comment-Date: Wed, 18 Jun 2025 09:15:21 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Andy Paicu (Gerrit)

unread,
Jun 18, 2025, 5:15:35 AMJun 18
to Andy Paicu, Chromium LUCI CQ, Mason Freed, AyeAye, blink-...@chromium.org, blink-revie...@chromium.org, blink-rev...@chromium.org
Attention needed from Andy Paicu and Mason Freed

Andy Paicu voted

Code-Review+0
Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Andy Paicu
  • Mason Freed
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Review
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: Ieee72b6bd5276ddc06bcd73705f969b59c707609
Gerrit-Change-Number: 6650971
Gerrit-PatchSet: 4
Gerrit-Owner: Andy Paicu <andy...@google.com>
Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
Gerrit-Attention: Andy Paicu <andy...@google.com>
Gerrit-Attention: Mason Freed <mas...@chromium.org>
Gerrit-Comment-Date: Wed, 18 Jun 2025 09:15:25 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Mason Freed (Gerrit)

unread,
Jun 18, 2025, 6:13:13 PMJun 18
to Andy Paicu, Andy Paicu, Chromium LUCI CQ, AyeAye, blink-...@chromium.org, blink-revie...@chromium.org, blink-rev...@chromium.org
Attention needed from Andy Paicu

Mason Freed added 4 comments

Patchset-level comments
File-level comment, Patchset 4 (Latest):
Mason Freed . resolved

Code mostly LGTM just a question about the lists

File third_party/blink/renderer/core/html/html_permission_element.cc
Line 107, Patchset 4 (Latest):constexpr EDisplay kValidDisplayStyles[] = {
Mason Freed . unresolved

With such a big list, it'd be good to link to a spec or something explaining what is in, and perhaps more importantly, what is missing from this list.

In fact, would it not be better to instead list what's *not* allowed?

Line 1517, Patchset 4 (Latest): ". Only block, flex, inline-* and masonry values are supported."}));
Mason Freed . unresolved

Reflecting the above comment - it'd be more helpful to name the things that are forbidden.

File third_party/blink/web_tests/external/wpt/html/semantics/permission-element/display-values.tentative.html
Line 50, Patchset 4 (Latest): testDisplayValue("block", "");
testDisplayValue("inline-block", "");
testDisplayValue("inline", "style_invalid");
Mason Freed . unresolved

Perhaps this should be a more complete list?

Open in Gerrit

Related details

Attention is currently required from:
  • Andy Paicu
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: Ieee72b6bd5276ddc06bcd73705f969b59c707609
    Gerrit-Change-Number: 6650971
    Gerrit-PatchSet: 4
    Gerrit-Owner: Andy Paicu <andy...@google.com>
    Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
    Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
    Gerrit-Attention: Andy Paicu <andy...@google.com>
    Gerrit-Comment-Date: Wed, 18 Jun 2025 22:13:05 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Andy Paicu (Gerrit)

    unread,
    Jun 23, 2025, 12:54:55 PMJun 23
    to Andy Paicu, Chromium LUCI CQ, Mason Freed, AyeAye, blink-...@chromium.org, blink-revie...@chromium.org, blink-rev...@chromium.org
    Attention needed from Andy Paicu and Mason Freed

    Andy Paicu voted and added 3 comments

    Votes added by Andy Paicu

    Commit-Queue+1

    3 comments

    File third_party/blink/renderer/core/html/html_permission_element.cc
    Line 107, Patchset 4:constexpr EDisplay kValidDisplayStyles[] = {
    Mason Freed . resolved

    With such a big list, it'd be good to link to a spec or something explaining what is in, and perhaps more importantly, what is missing from this list.

    In fact, would it not be better to instead list what's *not* allowed?

    Andy Paicu

    Done

    Line 1517, Patchset 4: ". Only block, flex, inline-* and masonry values are supported."}));
    Mason Freed . resolved

    Reflecting the above comment - it'd be more helpful to name the things that are forbidden.

    Andy Paicu

    Done

    File third_party/blink/web_tests/external/wpt/html/semantics/permission-element/display-values.tentative.html
    Line 50, Patchset 4: testDisplayValue("block", "");

    testDisplayValue("inline-block", "");
    testDisplayValue("inline", "style_invalid");
    Mason Freed . resolved

    Perhaps this should be a more complete list?

    Andy Paicu

    Done

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Andy Paicu
    • Mason Freed
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    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: Ieee72b6bd5276ddc06bcd73705f969b59c707609
    Gerrit-Change-Number: 6650971
    Gerrit-PatchSet: 6
    Gerrit-Owner: Andy Paicu <andy...@google.com>
    Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
    Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
    Gerrit-Attention: Andy Paicu <andy...@google.com>
    Gerrit-Attention: Mason Freed <mas...@chromium.org>
    Gerrit-Comment-Date: Mon, 23 Jun 2025 16:54:44 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Mason Freed <mas...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Mason Freed (Gerrit)

    unread,
    Jun 23, 2025, 4:52:24 PMJun 23
    to Andy Paicu, Andy Paicu, Chromium LUCI CQ, AyeAye, blink-...@chromium.org, blink-revie...@chromium.org, blink-rev...@chromium.org
    Attention needed from Andy Paicu and Andy Paicu

    Mason Freed voted and added 3 comments

    Votes added by Mason Freed

    Code-Review+1

    3 comments

    Patchset-level comments
    File-level comment, Patchset 7 (Latest):
    Mason Freed . resolved

    Nice, thank you for the changes. LGTM.

    File third_party/blink/renderer/core/html/html_permission_element.cc
    Line 107, Patchset 4:constexpr EDisplay kValidDisplayStyles[] = {
    Mason Freed . unresolved

    With such a big list, it'd be good to link to a spec or something explaining what is in, and perhaps more importantly, what is missing from this list.

    In fact, would it not be better to instead list what's *not* allowed?

    Andy Paicu

    Done

    Mason Freed

    Ha - guess the "deny" list is slightly larger, mostly because of kTable*. Still, thanks for making this change, I think it's easier to understand.

    I wonder if you could use IsDisplayTableType() from ComputedStyle? Ok if not.

    Line 1517, Patchset 4: ". Only block, flex, inline-* and masonry values are supported."}));
    Mason Freed . resolved

    Reflecting the above comment - it'd be more helpful to name the things that are forbidden.

    Andy Paicu

    Done

    Mason Freed

    Perfect.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Andy Paicu
    • Andy Paicu
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    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: Ieee72b6bd5276ddc06bcd73705f969b59c707609
    Gerrit-Change-Number: 6650971
    Gerrit-PatchSet: 7
    Gerrit-Owner: Andy Paicu <andy...@google.com>
    Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
    Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
    Gerrit-Attention: Andy Paicu <andy...@chromium.org>
    Gerrit-Attention: Andy Paicu <andy...@google.com>
    Gerrit-Comment-Date: Mon, 23 Jun 2025 20:52:11 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Andy Paicu <andy...@chromium.org>
    Comment-In-Reply-To: Mason Freed <mas...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Andy Paicu (Gerrit)

    unread,
    Jun 24, 2025, 5:14:30 AMJun 24
    to Mason Freed, Andy Paicu, Chromium LUCI CQ, AyeAye, blink-...@chromium.org, blink-revie...@chromium.org, blink-rev...@chromium.org
    Attention needed from Andy Paicu and Mason Freed

    Message from Andy Paicu

    Set Ready For Review

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Andy Paicu
    • Mason Freed
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      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: Ieee72b6bd5276ddc06bcd73705f969b59c707609
      Gerrit-Change-Number: 6650971
      Gerrit-PatchSet: 9
      Gerrit-Owner: Andy Paicu <andy...@google.com>
      Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
      Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
      Gerrit-Attention: Andy Paicu <andy...@chromium.org>
      Gerrit-Attention: Mason Freed <mas...@chromium.org>
      Gerrit-Comment-Date: Tue, 24 Jun 2025 09:14:18 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Andy Paicu (Gerrit)

      unread,
      Jun 24, 2025, 7:34:46 AMJun 24
      to Andy Paicu, Thomas Nguyen, Chromium Metrics Reviews, Mason Freed, Chromium LUCI CQ, AyeAye, asvitkine...@chromium.org, blink-...@chromium.org, blink-revie...@chromium.org, blink-rev...@chromium.org
      Attention needed from Andy Paicu, Mason Freed and Thomas Nguyen

      Andy Paicu voted and added 2 comments

      Votes added by Andy Paicu

      Commit-Queue+1

      2 comments

      Patchset-level comments
      File-level comment, Patchset 12 (Latest):
      Andy Paicu . resolved

      @mas...@chromium.org since in the meantime a dependent CL was reverted (more details in the description) and this CL re-adds it (and also fixes the issue in the process), please re-review.

      @tun...@chromium.org please verify that this new version will not run into the same issue as the CL which was reverted

      File third_party/blink/renderer/core/html/html_permission_element.cc
      Line 107, Patchset 4:constexpr EDisplay kValidDisplayStyles[] = {
      Mason Freed . resolved

      With such a big list, it'd be good to link to a spec or something explaining what is in, and perhaps more importantly, what is missing from this list.

      In fact, would it not be better to instead list what's *not* allowed?

      Andy Paicu

      Done

      Mason Freed

      Ha - guess the "deny" list is slightly larger, mostly because of kTable*. Still, thanks for making this change, I think it's easier to understand.

      I wonder if you could use IsDisplayTableType() from ComputedStyle? Ok if not.

      Andy Paicu

      Done

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Andy Paicu
      • Mason Freed
      • Thomas Nguyen
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      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: Ieee72b6bd5276ddc06bcd73705f969b59c707609
      Gerrit-Change-Number: 6650971
      Gerrit-PatchSet: 12
      Gerrit-Owner: Andy Paicu <andy...@google.com>
      Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
      Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
      Gerrit-Reviewer: Thomas Nguyen <tun...@chromium.org>
      Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
      Gerrit-Attention: Andy Paicu <andy...@google.com>
      Gerrit-Attention: Mason Freed <mas...@chromium.org>
      Gerrit-Attention: Thomas Nguyen <tun...@chromium.org>
      Gerrit-Comment-Date: Tue, 24 Jun 2025 11:34:31 +0000
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Thomas Nguyen (Gerrit)

      unread,
      Jun 24, 2025, 7:50:54 AMJun 24
      to Andy Paicu, Andy Paicu, Chromium Metrics Reviews, Mason Freed, Chromium LUCI CQ, AyeAye, asvitkine...@chromium.org, blink-...@chromium.org, blink-revie...@chromium.org, blink-rev...@chromium.org
      Attention needed from Andy Paicu, Andy Paicu and Mason Freed

      Thomas Nguyen voted and added 1 comment

      Votes added by Thomas Nguyen

      Code-Review+1

      1 comment

      File third_party/blink/renderer/core/html/html_permission_element.cc
      Line 1708, Patchset 12 (Latest): LayoutObject* layout_object = GetLayoutObject();
      Thomas Nguyen . unresolved

      off topic: as you mentioned, layout_object is not guaranteed not null. Looks like this does not 100% correct anymore, and I am also curious if the IntersectionObserver is still working with display:inline or display:content.

      If IO does not work at all, I think we have to restrict the display values.

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Andy Paicu
      • Andy Paicu
      • Mason Freed
      Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Owners
        • requirement satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        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: Ieee72b6bd5276ddc06bcd73705f969b59c707609
        Gerrit-Change-Number: 6650971
        Gerrit-PatchSet: 12
        Gerrit-Owner: Andy Paicu <andy...@google.com>
        Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
        Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
        Gerrit-Reviewer: Thomas Nguyen <tun...@chromium.org>
        Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
        Gerrit-Attention: Andy Paicu <andy...@chromium.org>
        Gerrit-Attention: Andy Paicu <andy...@google.com>
        Gerrit-Attention: Mason Freed <mas...@chromium.org>
        Gerrit-Comment-Date: Tue, 24 Jun 2025 11:50:36 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Andy Paicu (Gerrit)

        unread,
        Jun 24, 2025, 8:07:49 AMJun 24
        to Andy Paicu, Thomas Nguyen, Chromium Metrics Reviews, Mason Freed, Chromium LUCI CQ, AyeAye, asvitkine...@chromium.org, blink-...@chromium.org, blink-revie...@chromium.org, blink-rev...@chromium.org
        Attention needed from Andy Paicu, Mason Freed and Thomas Nguyen

        Andy Paicu added 1 comment

        File third_party/blink/renderer/core/html/html_permission_element.cc
        Line 1708, Patchset 12 (Latest): LayoutObject* layout_object = GetLayoutObject();
        Thomas Nguyen . unresolved

        off topic: as you mentioned, layout_object is not guaranteed not null. Looks like this does not 100% correct anymore, and I am also curious if the IntersectionObserver is still working with display:inline or display:content.

        If IO does not work at all, I think we have to restrict the display values.

        Andy Paicu

        Both display: inline and display: content make the permission element invalid. I went through all options manually and made all the display values that don't result in a LayoutBox to be invalid.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Andy Paicu
        • Mason Freed
        • Thomas Nguyen
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement is not satisfiedCode-Owners
        • requirement satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        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: Ieee72b6bd5276ddc06bcd73705f969b59c707609
        Gerrit-Change-Number: 6650971
        Gerrit-PatchSet: 12
        Gerrit-Owner: Andy Paicu <andy...@google.com>
        Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
        Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
        Gerrit-Reviewer: Thomas Nguyen <tun...@chromium.org>
        Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
        Gerrit-Attention: Andy Paicu <andy...@google.com>
        Gerrit-Attention: Mason Freed <mas...@chromium.org>
        Gerrit-Attention: Thomas Nguyen <tun...@chromium.org>
        Gerrit-Comment-Date: Tue, 24 Jun 2025 12:07:36 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Thomas Nguyen <tun...@chromium.org>
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Mason Freed (Gerrit)

        unread,
        Jun 24, 2025, 1:51:07 PMJun 24
        to Andy Paicu, Andy Paicu, Thomas Nguyen, Chromium Metrics Reviews, Chromium LUCI CQ, AyeAye, asvitkine...@chromium.org, blink-...@chromium.org, blink-revie...@chromium.org, blink-rev...@chromium.org
        Attention needed from Andy Paicu, Andy Paicu and Thomas Nguyen

        Mason Freed voted and added 2 comments

        Votes added by Mason Freed

        Code-Review+1

        2 comments

        Patchset-level comments
        Mason Freed . resolved

        Still LGTM

        File third_party/blink/renderer/core/html/html_permission_element.cc
        Line 1518, Patchset 12 (Latest): style->IsDisplayTableType()) {
        Mason Freed . resolved

        Nice!

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Andy Paicu
        • Andy Paicu
        • Thomas Nguyen
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement satisfiedCode-Owners
        • requirement satisfiedCode-Review
        • requirement is not satisfiedNo-Unresolved-Comments
        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: Ieee72b6bd5276ddc06bcd73705f969b59c707609
        Gerrit-Change-Number: 6650971
        Gerrit-PatchSet: 12
        Gerrit-Owner: Andy Paicu <andy...@google.com>
        Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
        Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
        Gerrit-Reviewer: Thomas Nguyen <tun...@chromium.org>
        Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
        Gerrit-Attention: Andy Paicu <andy...@chromium.org>
        Gerrit-Attention: Andy Paicu <andy...@google.com>
        Gerrit-Attention: Thomas Nguyen <tun...@chromium.org>
        Gerrit-Comment-Date: Tue, 24 Jun 2025 17:50:57 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        unsatisfied_requirement
        open
        diffy

        Andy Paicu (Gerrit)

        unread,
        Jun 25, 2025, 5:04:02 AMJun 25
        to Andy Paicu, Mason Freed, Thomas Nguyen, Chromium Metrics Reviews, Chromium LUCI CQ, AyeAye, asvitkine...@chromium.org, blink-...@chromium.org, blink-revie...@chromium.org, blink-rev...@chromium.org
        Attention needed from Andy Paicu and Thomas Nguyen

        Andy Paicu added 1 comment

        File third_party/blink/renderer/core/html/html_permission_element.cc
        Line 1708, Patchset 12 (Latest): LayoutObject* layout_object = GetLayoutObject();
        Thomas Nguyen . resolved

        off topic: as you mentioned, layout_object is not guaranteed not null. Looks like this does not 100% correct anymore, and I am also curious if the IntersectionObserver is still working with display:inline or display:content.

        If IO does not work at all, I think we have to restrict the display values.

        Andy Paicu

        Both display: inline and display: content make the permission element invalid. I went through all options manually and made all the display values that don't result in a LayoutBox to be invalid.

        Andy Paicu

        I'll mark as done, let me know if my answer is not sufficient.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Andy Paicu
        • Thomas Nguyen
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement satisfiedCode-Owners
        • requirement satisfiedCode-Review
        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: Ieee72b6bd5276ddc06bcd73705f969b59c707609
        Gerrit-Change-Number: 6650971
        Gerrit-PatchSet: 12
        Gerrit-Owner: Andy Paicu <andy...@google.com>
        Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
        Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
        Gerrit-Reviewer: Thomas Nguyen <tun...@chromium.org>
        Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
        Gerrit-Attention: Andy Paicu <andy...@google.com>
        Gerrit-Attention: Thomas Nguyen <tun...@chromium.org>
        Gerrit-Comment-Date: Wed, 25 Jun 2025 09:03:44 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Andy Paicu <andy...@chromium.org>
        Comment-In-Reply-To: Thomas Nguyen <tun...@chromium.org>
        satisfied_requirement
        open
        diffy

        Andy Paicu (Gerrit)

        unread,
        Jun 25, 2025, 5:08:24 AMJun 25
        to Andy Paicu, Mason Freed, Thomas Nguyen, Chromium Metrics Reviews, Chromium LUCI CQ, AyeAye, asvitkine...@chromium.org, blink-...@chromium.org, blink-revie...@chromium.org, blink-rev...@chromium.org
        Attention needed from Andy Paicu and Thomas Nguyen

        Andy Paicu voted and added 1 comment

        Votes added by Andy Paicu

        Commit-Queue+2

        1 comment

        Patchset-level comments
        Andy Paicu . resolved

        thank you

        Gerrit-Comment-Date: Wed, 25 Jun 2025 09:08:07 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: Yes
        satisfied_requirement
        open
        diffy

        Chromium LUCI CQ (Gerrit)

        unread,
        Jun 25, 2025, 5:15:08 AMJun 25
        to Andy Paicu, Andy Paicu, Mason Freed, Thomas Nguyen, Chromium Metrics Reviews, AyeAye, asvitkine...@chromium.org, blink-...@chromium.org, blink-revie...@chromium.org, blink-rev...@chromium.org

        Chromium LUCI CQ submitted the change

        Change information

        Commit message:
        [PEPC] Relax 'display' value restrictions

        There should be more allowed properties besides 'inline-block' which
        work for the permission element.

        This CL now also re-adds the reverted CL
        https://chromium-review.googlesource.com/c/chromium/src/+/6551238. That
        CL was reverted as it was causing issues with Zoom and Meet who were
        using display: flex and display: block (not deliberately, but
        inherited). This CL does also allow flex and block as values so it
        should be safe to re-add.
        Fixed: 422773357
        Change-Id: Ieee72b6bd5276ddc06bcd73705f969b59c707609
        Reviewed-by: Thomas Nguyen <tun...@chromium.org>
        Reviewed-by: Mason Freed <mas...@chromium.org>
        Commit-Queue: Andy Paicu <andy...@chromium.org>
        Cr-Commit-Position: refs/heads/main@{#1478426}
        Files:
        • M third_party/blink/renderer/core/html/html_permission_element.cc
        • M third_party/blink/renderer/core/html/html_permission_element.h
        • M third_party/blink/renderer/core/html/html_permission_element_test.cc
        • D third_party/blink/web_tests/external/wpt/html/semantics/permission-element/display-css-property-reftest-ref.html
        • D third_party/blink/web_tests/external/wpt/html/semantics/permission-element/display-css-property-reftest.tentative.html
        • D third_party/blink/web_tests/external/wpt/html/semantics/permission-element/display-css-property.tentative.html
        • A third_party/blink/web_tests/external/wpt/html/semantics/permission-element/display-values.tentative.html
        • M tools/metrics/histograms/metadata/blink/enums.xml
        Change size: M
        Delta: 8 files changed, 144 insertions(+), 91 deletions(-)
        Branch: refs/heads/main
        Submit Requirements:
        • requirement satisfiedCode-Review: +1 by Mason Freed, +1 by Thomas Nguyen
        Open in Gerrit
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: merged
        Gerrit-Project: chromium/src
        Gerrit-Branch: main
        Gerrit-Change-Id: Ieee72b6bd5276ddc06bcd73705f969b59c707609
        Gerrit-Change-Number: 6650971
        Gerrit-PatchSet: 13
        Gerrit-Owner: Andy Paicu <andy...@google.com>
        Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
        Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
        Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
        Gerrit-Reviewer: Thomas Nguyen <tun...@chromium.org>
        Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
        open
        diffy
        satisfied_requirement

        Blink W3C Test Autoroller (Gerrit)

        unread,
        Jun 25, 2025, 7:45:21 AMJun 25
        to Andy Paicu, Chromium LUCI CQ, Andy Paicu, Mason Freed, Thomas Nguyen, Chromium Metrics Reviews, AyeAye, asvitkine...@chromium.org, blink-...@chromium.org, blink-revie...@chromium.org, blink-rev...@chromium.org

        Message from Blink W3C Test Autoroller

        The WPT PR for this CL has been merged upstream! https://github.com/web-platform-tests/wpt/pull/53382

        Open in Gerrit

        Related details

        Attention set is empty
        Submit Requirements:
        • requirement satisfiedCode-Coverage
        • requirement satisfiedCode-Owners
        • requirement satisfiedCode-Review
        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: Ieee72b6bd5276ddc06bcd73705f969b59c707609
        Gerrit-Change-Number: 6650971
        Gerrit-PatchSet: 13
        Gerrit-Owner: Andy Paicu <andy...@google.com>
        Gerrit-Reviewer: Andy Paicu <andy...@chromium.org>
        Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
        Gerrit-Reviewer: Mason Freed <mas...@chromium.org>
        Gerrit-Reviewer: Thomas Nguyen <tun...@chromium.org>
        Gerrit-CC: Blink W3C Test Autoroller <blink-w3c-te...@chromium.org>
        Gerrit-CC: Chromium Metrics Reviews <chromium-met...@google.com>
        Gerrit-Comment-Date: Wed, 25 Jun 2025 11:45:14 +0000
        Gerrit-HasComments: No
        Gerrit-Has-Labels: No
        satisfied_requirement
        open
        diffy
        Reply all
        Reply to author
        Forward
        0 new messages