Closed Bug 2085458 Opened 1 month ago Closed 25 days ago

[wpt-sync] Sync PR 64050 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=328502

Categories

(Core :: DOM: Core & HTML, task, P4)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 64050 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/64050
Details from upstream follow.

Anne van Kesteren <annevk@annevk.nl> wrote:

WebKit export of https://bugs.webkit.org/show_bug.cgi?id=328502

WebKit export from bug: Update \<<!---->option><!----> when the alt attribute of a descendant \<<!---->img><!----> changes

<pre>
Update <option> when the alt attribute of a descendant <img> changes

The label of an <option>, which the native appearance of a <select> renders,
includes the alt text of <img> descendants. Changing that alt attribute is not a
change to anyone's children, so <a href="https://commits.webkit.org/324413@main">324413@main</a> does not cover it: a drop-down kept
showing the old text, and a list box kept the width of the old text.

HTMLImageElement::attributeChanged() now calls notifyDescendantsChanged() on the
parent of an <img> inside a <select> or <datalist> when its alt attribute
changes. Elsewhere this costs a flag check.

WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=328502">https://bugs.webkit.org/show_bug.cgi?id=328502</a>
</pre>

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core

CI Results

Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 13 tests and 12 subtests

Status Summary

Firefox

OK : 11
PASS: 108[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 109[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 1[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt, GitHub] 2[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview]

Chrome

FAIL: 1

Safari

FAIL: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Status: NEW → RESOLVED
Closed: 25 days ago
Resolution: --- → FIXED
Target Milestone: --- → 162 Branch
You need to log in before you can comment on or make changes to this bug.