Closed Bug 10115 Opened 25 years ago Closed 25 years ago

adjacent sibliling selector

Categories

(Core :: CSS Parsing and Computation, defect, P3)

x86
Other
defect

Tracking

()

VERIFIED INVALID

People

(Reporter: tapio.markula, Assigned: peterl-retired)

Details

I tested first-child + adjacent sibliling selectors

LI OL LI matches elements with class=a in the following
LI OL+UL matches elements with class=b in the following
LI OL>LI matches elements with class=c in the following
<ul>
  <li>
    <ol>
	  <li class="a c"> works only in Mozilla 5.0, not in IE 5.0
	    <ul>
		  <li class="a"></li>
		</ul>
              </li>
	</ol>
	<ul class="b"> I don't got working in Mozilla 5.0
	  <li></li>
	</ul>
  </li>
</ul>
Test-css:

ul li {list-style-type: disc;
list-style-image: url(../Seurakunta/uudet_logot/pallo.gif); /* pallo = an orange ball*/
list-style-position: outside;}
ul li ol li {list-style-type: lower-alpha;
list-style-image: url(../Seurakunta/uudet_logot/.gif);
list-style-position: outside;}
ul li ol>li {list-style-type: decimal;
list-style-image: url(../Seurakunta/uudet_logot/.gif);
list-style-position: outside;}
li ol+ul {list-style-type: disc;
list-style-image: url(../Seurakunta/uudet_logot/pallo-punainen.gif); /* punainen=red*/
list-style-position: outside;}

Test-body:
<UL>
<LI> UL LI: should be orange ball
     <OL>
    <LI>UL LI OL&gt;LI: should be decimal - don't work in IE 5.0
            <UL>
           <LI>UL LI OL UL LI: should be  lower-alpha
            </UL>
   </OL>
           <UL>
            <LI>UL LI OL+UL - should be red ball?
             </UL>
</UL>
Assignee: troy → peterl
Component: Layout → Style System
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
Working per CSS spec. The rule "UL LI" is re-setting the list-style witin the
effects of the "li ol+ul". Try "li ol+ul li".
Status: RESOLVED → VERIFIED
Marking as verified invalid.
You need to log in before you can comment on or make changes to this bug.