You’re viewing an archive of outdated material. Visit The Web Standards Project’s updated site to learn about our current mission.

Problems with Selectors

In Opera, descendent selectors in which elements are selected as a descendent of BODY do not work if a class or id selector is used to select body (possibly in combination with BODY).

To demonstrate this, the BODY element on this page has been given an id of body and a class of body. Each of the following lines should be green.

  1. BODY#body LI { color: green; }
  2. BODY.body LI { color: green; }
  3. .body LI { color: green; }
  4. #body LI { color: green; }