[Bug 49002] Incorrect CSS selector handling in advanced situations.

Matt boards at gmail.com
Thu Jun 8 14:31:07 UTC 2006

Public bug reported:

Binary package hint: konqueror

The example selector issue that comes to mind is this:

element:not(:last-child)::after { content: ' | '; }

For instance, you could use that bit of CSS on an unordered list (along
with making it display: inline;) to get the list elements separated by
vertical bars.  Normally, the last child would not generate the content
(self-explanatory), but Konqueror does.  Here's the kicker, though: if
you refresh the page, the erroneous vertical bar disappears!

Now I'm not sure how many situations this can apply to, but I think that
the :not() selector is broken.  Putting other selectors such as :first-
child, :last-child, :nth-child(), :empty, :hover, etc, should work
inside a selector such as :not().

I'll attach a test-case in a little bit.

** Affects: kdebase (Ubuntu)
     Importance: Untriaged
         Status: Unconfirmed

Incorrect CSS selector handling in advanced situations.

More information about the kubuntu-bugs mailing list