it shows the ul li styles crossed out and overriden by ol li.
Since the ul
is inside the ol
, the li
is a descendant of both the list elements, so both selectors will apply.
The two selectors have equal specificity, so they are applied in order.
You have defined the ol li
styles after the ul li
styles in the stylesheet, so they override the earlier ones.
You could use a more specific selector to target the deeper list:
ol ul li { }
Or you could use a child combinator instead of a descendant combinator:
ol > li {}
ul > li {}
(Note that it is invalid HTML to have a ul
as a child of a ol
. The nested list should appear within a li
.)