Closed Bug 1645711 Opened 7 months ago Closed 7 months ago

[wpt-sync] Sync PR 24142 - Fixes empty alt text on broken images overriding css dimensions.

Categories

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

task

Tracking

()

RESOLVED FIXED
mozilla79
Tracking Status
firefox79 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Yu Han <yuzhehan@chromium.org> wrote:

Fixes empty alt text on broken images overriding css dimensions.

Prior to this CL, an img with CSS height, width and empty alt text
renders as nothing. This is wrong because [2] states that the img
should be rendered as a replaced element with its intrinsic dimensions.

The fix continues from the previous fix to the img title attribute by
adding an additional check to see if the alt text is empty too.

[1] https://html.spec.whatwg.org/multipage/rendering.html#images-3::represents-2

Bug:753868
Change-Id: I9b127c54d9d5eb0f1e900dee47f24aff09f2ed8b
Reviewed-on: https://chromium-review.googlesource.com/2238327
WPT-Export-Revision: adf91b3bd956cbc850ecd11fc6d2b721792bb2bf

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

CI Results

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

Total 1 tests and 1 subtests

Status Summary

Firefox

OK : 1
PASS: 1

Chrome

OK : 1
FAIL: 1

Safari

OK : 1
FAIL: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/de01a9b4589f
[wpt PR 24142] - Fixes empty alt text on broken images overriding css dimensions., a=testonly
Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla79
You need to log in before you can comment on or make changes to this bug.