@@ -641,8 +641,8 @@ set to 'hidden', on the other hand, <em>do</em> increment counters.
641641generation of more than one box. The most common case occurs for
642642elements with 'display: list-item' (see the section on <a
643643href="lists.html">lists</a>). The two generated boxes are the
644- principle box (the list item content) and the list item marker (to the
645- side of the principle box). Authors have very limited control of the
644+ principal box (the list item content) and the list item marker (to the
645+ side of the principal box). Authors have very limited control of the
646646style or position of the list item marker through the <a
647647href="lists.html#list-props">list style properties.</a>
648648
@@ -664,6 +664,7 @@ may be used to align entire blocks horizontally.
664664
665665<!-- Do they have margins? I would say no except that
666666abs. positioned boxes now have margins, too -IJ -->
667+ <!-- I'd say no, too. BB -->
667668
668669<P>To create a marker box for :before or :after content, the <span
669670class="propinst-display">'display'</span> property must be given the
@@ -686,23 +687,33 @@ principal box.
686687<P>The vertical alignment of content within the marker box may be
687688specified with the <span
688689class="propinst-vertical-align">'vertical-align'</span> property.
689- Thus, a series of markers may all be left-justified, right-justified,
690- etc.
690+
691+ <p>The height of the :before marker and of the first line box of the
692+ principal box is computed as if they were a single line
693+ box. Analogously for the :after marker and the last line box.
691694
692695<P>The width of a marker box defaults to the natural width of its
693696content, but may be specified with the <span
694697class="propinst-width">'width'</span> property. If the width of a
695- marker box's content is greater than a specified width, the <span
698+ marker box's content is greater than the specified width, the <span
696699class="propinst-overflow">'overflow'</span> property specifies
697700overflow behavior. Marker boxes may overlap principal boxes.
698701
702+ <p>If the 'width' is not 'auto', and is larger than the natural width,
703+ the <span class="propinst-text-align">'text-align'</span> property
704+ determines the alignment of the text in the marker box.
705+
699706<P>The <span class="propinst-marker-offset">'marker-offset'</span>
700707property specifies the horizontal offset between a marker box and the
701- associated principal box.
708+ associated principal box. The distance is measured between their <a
709+ href="visuren.html#border-edge">border edges</a>.
710+
711+ <p class="note">[Is this offset kept constant, even if
712+ 'overflow:visible'? I would say it gets smaller. BB]
702713
703714<P>When the <span class="propinst-marker">'marker'</span> property is
704715set for content generated by an element with 'display: list-item', a
705- marker box generated for :before replaces the normal list item marker.
716+ marker box generated for ' :before' replaces the normal list item marker.
706717
707718<div class="example"><P>
708719The following example illustrates how markers may
@@ -740,7 +751,7 @@ This HTML program and style sheet:</p>
740751</div>
741752
742753<div class="example"><P>
743- This example shows different marker horizontal
754+ This example shows a different horizontal
744755alignment: the content is centered within a
745756box of a fixed width. This document:</p>
746757
@@ -769,12 +780,12 @@ box of a fixed width. This document:</p>
769780<p>should produce something like this: </P>
770781
771782<PRE>
772- (1) This is the
773- first item.
774- (2) This is the
775- second item.
776- (3) This is the
777- third item.
783+ (1) This is the
784+ first item.
785+ (2) This is the
786+ second item.
787+ (3) This is the
788+ third item.
778789</PRE>
779790</div>
780791
@@ -783,13 +794,13 @@ The next example creates markers before and after
783794list items. This document:</p>
784795
785796<PRE class="html-example">
786- <HTML>
797+ <HTML>
787798 <HEAD>
788799 <STYLE type="text/css">
789- LI:before {
800+ LI:before {
790801 display: marker;
791802 content: url(smiley.gif);
792- LI:after
803+ LI:after {
793804 display: marker;
794805 content: url(sad.gif);
795806 }
@@ -809,9 +820,9 @@ smiley gif images here):</p>
809820
810821<PRE>
811822 :-) first list
812- item comes first )-:
823+ item comes first :-(
813824 :-) second list
814- items comes second )-:
825+ item comes second :-(
815826</PRE>
816827</div>
817828
0 commit comments