summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/rendering/replaced-elements/attributes-for-embedded-content-and-images/input-image-inline-alt.html
blob: e05ad84191373836d5fd8b64a45ce69bab197fb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!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>