white-space-pre-wrap-trailing-spaces-022.html (1277B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Text test: hanging trailing spaces with white-space:pre-wrap</title> 4 <link rel="author" title="Javier Fernandez" href="mailto:jfernandez@igalia.com" /> 5 <link rel="help" href="https://drafts.csswg.org/css-text-3/#white-space-phase-2"> 6 <link rel="help" title="3. White Space and Wrapping: the white-space property" href="https://drafts.csswg.org/css-text-3/#white-space-property"> 7 <link rel="help" title="4.1.2. Phase II: Trimming and Positioning" href="https://drafts.csswg.org/css-text-3/#white-space-phase-2"> 8 <link rel="help" href="https://drafts.csswg.org/css-text-3/#valdef-white-space-pre-wrap"> 9 <link rel="match" href="reference/white-space-break-spaces-005-ref.html"> 10 <meta name="assert" content="preserved trailing spaces under 'white-space: pre-wrap' hang and shouldn't cause overflow and activate the horizontal scrollbar."> 11 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 12 <style> 13 div { 14 width: 2ch; 15 height: 100px; 16 font: 50px/1 Ahem; 17 color: green; 18 19 overflow-y: hidden; 20 overflow-x: auto; 21 white-space: pre-wrap; 22 } 23 </style> 24 <p>Test passes if there is a <strong>filled green square</strong> and <strong>no red</strong>.</p> 25 <div>XX XX</div>