Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/rendering/replaced-elements/attributes-for-embedded-content-and-images/input-image-inline-alt.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Input image type fallback content should respect display property.</title>
<meta name="author" title="Yu Han" href="mailto:yuzhehan@chromium.org">
<link rel="match" href="input-image-inline-alt-ref.html">
<link ref="help" href="https://html.spec.whatwg.org/multipage/rendering.html#images-3:represents-5">
<style>
div {
border:1px dashed blue;
font: 1em monospace;
line-height: 1em;
height: 100px;
width: 150px;
}
input {
display: inline;
font: 1em monospace;
line-height: 1em;
}
</style>
<div>
<input alt="This is a long ALT text which takes up few lines to display." type="image">
And additional text to be inlined.
</div>