File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -1193,7 +1193,31 @@ Characters and Letters</h3>
11931193
11941194 </ol>
11951195
1196- Issue: Add example of hanging white space + same example right-aligned.
1196+ <div class=example>
1197+ This example illustrates the consequence of [=hanging=] white space
1198+ at the end of the line
1199+ on text alignement.
1200+ <pre><code class=lang-css>
1201+ p {
1202+ white-space: pre-wrap;
1203+ text-align: end;
1204+ width: 20ch;
1205+ border: solid 1px;
1206+ }</code></pre>
1207+ <pre><code class=lang-markup>
1208+ <p>Lorem ipsum </p>
1209+ </code></pre>
1210+
1211+ As the preserved spaces at the end of the line must [=hang=] ,
1212+ they are not considered when placing the rest of the line during text alignment.
1213+ When aligning towards the end,
1214+ this means any such spaces will overflow,
1215+ and will not prevent the rest of the line's content from being flush with the edge of the line.
1216+ The sample above would therefore be rendered as follows:
1217+ <pre class=output style="width: 20ch; border: solid 1px; text-align: end;">
1218+ Lorem ipsum
1219+ </pre>
1220+ </div>
11971221
11981222 <p> White space that was not removed or collapsed during the white space
11991223 processing steps is called <dfn>preserved</dfn> white space.</p>
You can’t perform that action at this time.
0 commit comments