adjacent sibliling selector

VERIFIED INVALID

Status

()

Core
CSS Parsing and Computation
P3
normal
VERIFIED INVALID
19 years ago
19 years ago

People

(Reporter: tapio.markula, Assigned: Peter Linss)

Tracking

Trunk
x86
Other
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

19 years ago
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>

Updated

19 years ago
Assignee: troy → peterl
Component: Layout → Style System
(Assignee)

Updated

19 years ago
Status: NEW → RESOLVED
Last Resolved: 19 years ago
Resolution: --- → INVALID
(Assignee)

Comment 1

19 years ago
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".

Updated

19 years ago
Status: RESOLVED → VERIFIED

Comment 2

19 years ago
Marking as verified invalid.
You need to log in before you can comment on or make changes to this bug.