Handle content: url() on HTMLVideoElement [chromium/src : main]

0 views
Skip to first unread message

Hyowon Kim (Gerrit)

unread,
Feb 10, 2026, 12:43:21 AM (2 days ago) Feb 10
to Dale Curtis, Chromium LUCI CQ, chromium...@chromium.org, srirama chandra sekhar, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org
Attention needed from Dale Curtis

New activity on the change

Open in Gerrit

Related details

Attention is currently required from:
  • Dale Curtis
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: I64c2d8a056d18aeba386e3602e1721f40bfc6f8d
Gerrit-Change-Number: 7561350
Gerrit-PatchSet: 1
Gerrit-Owner: Hyowon Kim <hyo...@igalia.com>
Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
Gerrit-Reviewer: Hyowon Kim <hyo...@igalia.com>
Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
Gerrit-Attention: Dale Curtis <dalec...@chromium.org>
Gerrit-Comment-Date: Tue, 10 Feb 2026 05:42:52 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Dale Curtis (Gerrit)

unread,
Feb 10, 2026, 1:08:29 PM (2 days ago) Feb 10
to Hyowon Kim, Chromium LUCI CQ, chromium...@chromium.org, srirama chandra sekhar, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org
Attention needed from Hyowon Kim

Dale Curtis added 1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Dale Curtis . unresolved

LayoutVideo seems to have some special handling for poster images, so I suspect this may lead to weird interactions when a poster is present. Has that been considered? Since this is opt-in I guess it's not a big deal, but still want to double check.

Open in Gerrit

Related details

Attention is currently required from:
  • Hyowon Kim
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: I64c2d8a056d18aeba386e3602e1721f40bfc6f8d
    Gerrit-Change-Number: 7561350
    Gerrit-PatchSet: 1
    Gerrit-Owner: Hyowon Kim <hyo...@igalia.com>
    Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
    Gerrit-Reviewer: Hyowon Kim <hyo...@igalia.com>
    Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
    Gerrit-Attention: Hyowon Kim <hyo...@igalia.com>
    Gerrit-Comment-Date: Tue, 10 Feb 2026 18:08:19 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Hyowon Kim (Gerrit)

    unread,
    Feb 10, 2026, 11:29:21 PM (2 days ago) Feb 10
    to Dale Curtis, Chromium LUCI CQ, chromium...@chromium.org, srirama chandra sekhar, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org
    Attention needed from Dale Curtis

    Hyowon Kim added 1 comment

    Patchset-level comments
    Dale Curtis . unresolved

    LayoutVideo seems to have some special handling for poster images, so I suspect this may lead to weird interactions when a poster is present. Has that been considered? Since this is opt-in I guess it's not a big deal, but still want to double check.

    Hyowon Kim

    Poster handling in Video only happens when LayoutVideo is created. This change creates a new LayoutObject via LayoutObject::CreateObject when content: url() is present, so the poster code path isn’t used in that case.

    Also, the WPT ref (element-replacement-on-replaced-element-ref.html) covers the poster + content: url() case.
    https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/web_tests/external/wpt/css/css-content/element-replacement-on-replaced-element-ref.html

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Dale Curtis
    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: I64c2d8a056d18aeba386e3602e1721f40bfc6f8d
    Gerrit-Change-Number: 7561350
    Gerrit-PatchSet: 1
    Gerrit-Owner: Hyowon Kim <hyo...@igalia.com>
    Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
    Gerrit-Reviewer: Hyowon Kim <hyo...@igalia.com>
    Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
    Gerrit-Attention: Dale Curtis <dalec...@chromium.org>
    Gerrit-Comment-Date: Wed, 11 Feb 2026 04:28:56 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Dale Curtis <dalec...@chromium.org>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Dale Curtis (Gerrit)

    unread,
    Feb 11, 2026, 1:02:27 PM (15 hours ago) Feb 11
    to Hyowon Kim, Chromium LUCI CQ, chromium...@chromium.org, srirama chandra sekhar, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org
    Attention needed from Hyowon Kim

    Dale Curtis voted and added 1 comment

    Votes added by Dale Curtis

    Code-Review+1

    1 comment

    Patchset-level comments
    Dale Curtis . resolved

    LayoutVideo seems to have some special handling for poster images, so I suspect this may lead to weird interactions when a poster is present. Has that been considered? Since this is opt-in I guess it's not a big deal, but still want to double check.

    Hyowon Kim

    Poster handling in Video only happens when LayoutVideo is created. This change creates a new LayoutObject via LayoutObject::CreateObject when content: url() is present, so the poster code path isn’t used in that case.

    Also, the WPT ref (element-replacement-on-replaced-element-ref.html) covers the poster + content: url() case.
    https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/web_tests/external/wpt/css/css-content/element-replacement-on-replaced-element-ref.html

    Dale Curtis

    Thanks!

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Hyowon Kim
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement 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: I64c2d8a056d18aeba386e3602e1721f40bfc6f8d
    Gerrit-Change-Number: 7561350
    Gerrit-PatchSet: 1
    Gerrit-Owner: Hyowon Kim <hyo...@igalia.com>
    Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
    Gerrit-Reviewer: Hyowon Kim <hyo...@igalia.com>
    Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
    Gerrit-Attention: Hyowon Kim <hyo...@igalia.com>
    Gerrit-Comment-Date: Wed, 11 Feb 2026 18:02:14 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Hyowon Kim <hyo...@igalia.com>
    Comment-In-Reply-To: Dale Curtis <dalec...@chromium.org>
    satisfied_requirement
    open
    diffy

    Hyowon Kim (Gerrit)

    unread,
    Feb 11, 2026, 7:18:57 PM (8 hours ago) Feb 11
    to Dale Curtis, Chromium LUCI CQ, chromium...@chromium.org, srirama chandra sekhar, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org

    Hyowon Kim voted Commit-Queue+2

    Commit-Queue+2
    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement 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: I64c2d8a056d18aeba386e3602e1721f40bfc6f8d
    Gerrit-Change-Number: 7561350
    Gerrit-PatchSet: 1
    Gerrit-Owner: Hyowon Kim <hyo...@igalia.com>
    Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
    Gerrit-Reviewer: Hyowon Kim <hyo...@igalia.com>
    Gerrit-CC: srirama chandra sekhar <srir...@samsung.com>
    Gerrit-Comment-Date: Thu, 12 Feb 2026 00:18:32 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Chromium LUCI CQ (Gerrit)

    unread,
    Feb 11, 2026, 9:20:11 PM (6 hours ago) Feb 11
    to Hyowon Kim, Dale Curtis, chromium...@chromium.org, srirama chandra sekhar, blink-rev...@chromium.org, blink-...@chromium.org, eric.c...@apple.com, feature-me...@chromium.org

    Chromium LUCI CQ submitted the change

    Change information

    Commit message:
    Handle content: url() on HTMLVideoElement

    HTMLVideoElement::CreateLayoutObject() ignored the CSS content property,
    always returning a LayoutVideo. Add the same ImageContentData check that
    HTMLImageElement already has, so that content: url() works consistently
    on replaced elements.

    This fixes the WPT reftest
    element-replacement-on-replaced-element.tentative.html, which failed
    because content: url() worked on <img> but not on <video> in the
    reference file.
    Change-Id: I64c2d8a056d18aeba386e3602e1721f40bfc6f8d
    Bug: 1067277
    Commit-Queue: Hyowon Kim <hyo...@igalia.com>
    Reviewed-by: Dale Curtis <dalec...@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1583676}
    Files:
    • M third_party/blink/renderer/core/html/media/html_video_element.cc
    • M third_party/blink/web_tests/TestExpectations
    Change size: XS
    Delta: 2 files changed, 7 insertions(+), 2 deletions(-)
    Branch: refs/heads/main
    Submit Requirements:
    • requirement satisfiedCode-Review: +1 by Dale Curtis
    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: I64c2d8a056d18aeba386e3602e1721f40bfc6f8d
    Gerrit-Change-Number: 7561350
    Gerrit-PatchSet: 2
    Gerrit-Owner: Hyowon Kim <hyo...@igalia.com>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: Dale Curtis <dalec...@chromium.org>
    Gerrit-Reviewer: Hyowon Kim <hyo...@igalia.com>
    open
    diffy
    satisfied_requirement
    Reply all
    Reply to author
    Forward
    0 new messages