line-breaking-replaced-005.html (713B)
1 <!doctype html> 2 <html> 3 <meta charset="utf-8"> 4 <title>CSS Text — replaced elements line break before and after, even with keep-all</title> 5 <meta name=assert content="There is a soft wrap opportunity before and after a replaced element even with word-break: keep-all"> 6 <link rel=match href="reference/line-breaking-replaced-004-ref.html"> 7 <link rel=help href="https://www.w3.org/TR/css-text-3/#line-break-details"> 8 <link rel=author title="Florian Rivoal" href="https://florian.rivoal.net"> 9 <style> 10 div { 11 width: 0; 12 word-break: keep-all; 13 } 14 </style> 15 16 <p>Test passes if “B” is below “A”. 17 18 <div>A<br><img src="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="><br>B</div>