@@ -157,7 +157,7 @@ <h2>Declaring a List Item</h2>
157157
158158<!-- ====================================================================== -->
159159
160- < h2 > List Content: The 'list-style-type' property</ h2 >
160+ < h2 id = list-style-type-property > List Content: The 'list-style-type' property</ h2 >
161161
162162< table class ="propdef ">
163163 < tr >
@@ -656,7 +656,7 @@ <h3 id=complex-counters>Complex counter styles</h3>
656656
657657<!-- ====================================================================== -->
658658
659- < h2 id =list-style-image > List Content: The 'list-style-image' property</ h2 >
659+ < h2 id =list-style-image-property > List Content: The 'list-style-image' property</ h2 >
660660
661661< table class ="propdef ">
662662 < tr >
@@ -697,7 +697,7 @@ <h2 id=list-style-image>List Content: The 'list-style-image' property</h2>
697697
698698<!-- ====================================================================== -->
699699
700- < h2 > List Content: Generating the computed value of the 'content' property</ h2 >
700+ < h2 id = content-property > List Content: Generating the computed value of the 'content' property</ h2 >
701701
702702< p > If a ''::marker'' pseudo-element has its 'content' property set to ''normal'', the
703703following algorithm should be used to generate the computed value of the property.</ p >
@@ -732,7 +732,7 @@ <h2>List Content: Generating the computed value of the 'content' property</h2>
732732
733733<!-- ====================================================================== -->
734734
735- < h2 > Marker Position: The 'list-style-position' property</ h2 >
735+ < h2 id = list-style-position-property > Marker Position: The 'list-style-position' property</ h2 >
736736
737737< table class ="propdef ">
738738 < tr >
@@ -763,7 +763,7 @@ <h2>Marker Position: The 'list-style-position' property</h2>
763763
764764< dl >
765765 < dt > < dfn > inside</ dfn > </ dt >
766- < dd > The ''::marker'' pseudo-element is an inline element placed immediately
766+ < dd > The ''::marker'' pseudo-element is an inline-block element placed immediately
767767 before the ''::before'' pseudo-element in the list item's principle box, after
768768 which the element's content flows. Note that if there is no inline content,
769769 this will create a line box, just as content in an inline ''::before'' pseudo-element
@@ -859,7 +859,7 @@ <h2>Marker Position: The 'list-style-position' property</h2>
859859
860860<!-- ====================================================================== -->
861861
862- < h2 > The 'list-style' shorthand property</ h2 >
862+ < h2 id = list-style-property > The 'list-style' shorthand property</ h2 >
863863
864864< table class ="propdef ">
865865 < tr >
@@ -974,55 +974,20 @@ <h2>The 'list-style' shorthand property</h2>
974974
975975<!-- ====================================================================== -->
976976
977- < h2 > Markers: The ''::marker'' pseudo-element</ h2 >
977+ < h2 id = marker-pseudoelement > Markers: The ''::marker'' pseudo-element</ h2 >
978978
979979< p > Markers are created by setting an element's 'display' property to
980- ''list-item. The ''list-item display type is, in every
981- other respect, identical to the ''block'' display type.</ p >
982-
983- < p > The marker box is only created if the computed value of the 'content' property for the pseudo-element is not
984- ''inhibit''. The rest of this section discusses the details of the positioning of the
985- marker box if it is positioned outside. For details on positioning the marker box when it is an
986- inside list marker, see the section on 'list-style-position'.</ p >
987-
988- < p > If the elements' 'list-style-position' property has the value ''outside'',
989- then the value of the element's ''::marker''
990- pseudo-element's 'content' property is formatted in an independent
991- marker box, outside the principal box. Marker boxes are formatted as an inline-block (i.e., they fit
992- in one line box), so they are not as flexible as floats or absolutely positioned boxes.</ p >
993-
994- < p > Marker boxes have padding, borders and margins, just like inline-block elements. The marker box
995- will be vertically aligned with the first line of content in the principal box, as specified by the
996- pseudo-element's 'vertical-align' property. The marker box
997- participates in the height calculation of the principal box's first line box. Thus, markers are
998- aligned with the first line of an element's content. If no first line box exists in a principal box,
999- the marker box establishes its line box alone. (The first line of a principle box is the one matched
1000- by the box's '::first-line' pseudo-element.)</ p >
1001-
1002- < p > The marker box is horizontally aligned with the start of the line box. Thus if a float intersects
1003- the element, moving the line box start, the marker box is moved as well. It is the responsibility of
1004- the author to ensure that sufficient margins are provided to prevent marker boxes overlapping with
1005- the floats. If the marker box is generating the line box, then it is aligned with the content area's
1006- start edge. The box model defines the properties 'float-displace' and
1007- 'indent-edge-reset' to control how far line boxes are moved in the
1008- presence of floats.</ p >
1009-
1010- < p > If the value of the 'width' property is ''auto'', the marker box content width
1011- is that of the content, otherwise it is the value of 'width'. For values of 'width'
1012- less than the content width, the overflow is visible. The 'overflow'
1013- property does not apply. The 'text-align' property determines the
1014- horizontal alignment of the content in the marker box.</ p >
1015-
1016- < p > Marker boxes may overlap principal boxes and other marker boxes. Overlap could happen for several
1017- reasons. If several nested elements without inline content all have marker boxes, for instance, or
1018- if a marker box has negative margins. Marker boxes are rendered at the same stack level as inline
1019- content of the principle box, as if it was the first box of the first line box.</ p >
1020-
1021- < p class ="note "> The CSS2 'marker-offset' property is obsoleted in this
1022- model and has no effect. (It is replaced by the 'margin-right'
1023- property in left-to-right text, and the 'margin-left'
1024- property in right-to-left text.)</ p >
1025-
980+ ''list-item''. The ''list-item'' display type is, in every
981+ other respect, identical to the ''block'' display type. The marker box is only
982+ created if the computed value of the 'content' property for the pseudo-element
983+ is not ''none''.</ p >
984+
985+ < p > Just like other generated content, markers generate a box when they're created,
986+ which has margins, border, padding, and everything else a box normally has. Markers
987+ are placed at the beginning of their superior parent's content, immediately before
988+ a ''::before'' pseudo-element on the same superior parent. Marker boxes are
989+ inline-block by default, and so a value of ''auto'' for 'width'
990+ resolves to the width of the marker's content.</ p >
1026991
1027992< div class ="html-example ">
1028993 < p > In the following example, the content is centered within a marker
0 commit comments