You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
invisible, but retains its <adata-link-type="dfn" href="#soft-wrap-opportunity">soft wrap opportunity</a>, if any.)
715
715
</ol>
716
716
<li>
717
-
<p>If <aclass="property" data-link-type="propdesc" href="#propdef-white-space">white-space</a> is set to <aclass="css" data-link-type="maybe" href="#valdef-white-space-pre-wrap">pre-wrap</a>,
718
-
any sequence of spaces is preserved.
717
+
<p>If <aclass="property" data-link-type="propdesc" href="#propdef-white-space">white-space</a> is set to <aclass="css" data-link-type="maybe" href="#valdef-white-space-pre-wrap">pre-wrap</a>, or <aclass="css" data-link-type="maybe" href="#valdef-white-space-pre-wrap-auto">pre-wrap-auto</a> any sequence of spaces is preserved.
719
718
This is achieved by treating it as a sequence of non-breaking spaces,
720
719
except that a <adata-link-type="dfn" href="#soft-wrap-opportunity">soft wrap opportunity</a> exists
721
-
between each of the spaces of this preserved sequence,
722
-
as well as at the beginning
723
-
and at the end of the sequence.</p>
724
-
<li>
725
-
<p>If <aclass="property" data-link-type="propdesc" href="#propdef-white-space">white-space</a> is set to <aclass="css" data-link-type="maybe" href="#valdef-white-space-pre-wrap-auto">pre-wrap-auto</a>,
726
-
any sequence of spaces is preserved.
727
-
This is achieved by treating it as a sequence of non-breaking spaces.
728
-
However, unlike with <aclass="css" data-link-type="maybe" href="#valdef-white-space-pre-wrap">pre-wrap</a>,
729
-
whether <adata-link-type="dfn" href="#soft-wrap-opportunity">soft wrap opportunities</a> exist in this sequence
730
-
is user-agent defined.
731
-
These UA-specific rules may be context dependent.</p>
720
+
after each of the spaces of this preserved sequence.</p>
721
+
<pclass="note" role="note">The <ahref="#white-space-phase-2">Trimming and Positioning</a> rules are different for <aclass="css" data-link-type="maybe" href="#valdef-white-space-pre-wrap">pre-wrap</a> and <aclass="css" data-link-type="maybe" href="#valdef-white-space-pre-wrap-auto">pre-wrap-auto</a>.</p>
732
722
</ul>
733
723
<p>Then, the entire block is rendered. Inlines are laid out, taking bidi
734
724
reordering into account, and <adata-link-type="dfn" href="#wrapping">wrapping</a> as specified by the <aclass="property" data-link-type="propdesc" href="#propdef-white-space">white-space</a> property.</p>
The tab size is given by the <aclass="property" data-link-type="propdesc" href="#propdef-tab-size">tab-size</a> property.
795
785
<li>A sequence of <adata-link-type="dfn" href="#collapsible-white-space">collapsible</a> spaces at the end of a line is removed.
796
-
<li>If spaces or tabs at the end of a line are non-collapsible but
797
-
have <aclass="property" data-link-type="propdesc" href="#propdef-white-space">white-space</a> set to <aclass="css" data-link-type="maybe" href="#valdef-white-space-pre-wrap-auto">pre-wrap-auto</a> the UA may visually
798
-
collapse their character advance widths.
786
+
<li>
787
+
If spaces or tabs at the end of a line are non-collapsible but
788
+
have <aclass="property" data-link-type="propdesc" href="#propdef-white-space">white-space</a> set to <aclass="css" data-link-type="maybe" href="#valdef-white-space-pre-wrap-auto">pre-wrap-auto</a> the UA may visually collapse their character advance widths, <em>or</em> treat them as collapsed for the purpose of wrapping text
789
+
(such that the white space overflows the line instead of wrapping to the front of the next line).
790
+
<p></p>
799
791
</ol>
800
792
<p>White space that was not removed or collapsed during the white space
801
793
processing steps is called <dfndata-dfn-type="dfn" data-noexport="" id="preserved">preserved<aclass="self-link" href="#preserved"></a></dfn> white space.</p>
0 commit comments