diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2025-09-28 20:26:15 +0200 |
---|---|---|
committer | Rodrigo <rodarima@gmail.com> | 2025-09-28 23:10:55 +0200 |
commit | fb510ea86be5ceb9e91573890242581fdbd77ad8 (patch) | |
tree | d819fe40683592008d136727f5a0b03e48dc1164 /207/index.md |
Diffstat (limited to '207/index.md')
-rw-r--r-- | 207/index.md | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/207/index.md b/207/index.md new file mode 100644 index 0000000..240ac00 --- /dev/null +++ b/207/index.md @@ -0,0 +1,37 @@ +Title: Long alt text makes image too wide +Author: rodarima +Created: Wed, 26 Jun 2024 21:55:54 +0000 +State: open + +Long alt text in images should be split into lines, but they are not. + +Reproducer: + +```html +<!DOCTYPE html> +<html> + <head> + <title>Test image with long alt text</title> + <style> + div {margin: 20px; max-width: 400px; background: lightyellow; } + img {background: lightgreen; } + </style> + </head> + <body> + <div> + This should be 400 px wide. + </div> + <div> + The following image should fail to load and show the alt text instead. + However, the text is longer than the div width and must be split into + multiple lines to avoid making the div longer. + <img alt="This is the image alt text and as you can see it is longer than the containing div." src="not-existing-image.png"> + </div> + </body> +</html> +``` + + + + +See: https://lists.mailman3.com/hyperkitty/list/dillo-dev@mailman3.com/message/PDDFE5T43OEDQOH33SDKJXCX72GN3VUI/
\ No newline at end of file |