[wpt-sync] Sync PR 24142 - Fixes empty alt text on broken images overriding css dimensions.
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox79 | --- | fixed |
People
(Reporter: wpt-sync, 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
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Comment 1•5 years ago
|
||
| Assignee | ||
Comment 2•5 years ago
|
||
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
Comment 4•5 years ago
|
||
| bugherder | ||
Description
•