Bug 101115 - [test case] Nondeterministic matching of CSS selectors
Summary: [test case] Nondeterministic matching of CSS selectors
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
: 59470 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-03-08 18:45 UTC by Allan Sandfeld
Modified: 2006-04-04 18:58 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Allan Sandfeld 2005-03-08 18:45:04 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

Two of the CSS selectors the CSS2 descendant and the CSS3 indirect adjacency selectors have the ability to make the matching process branch.

For instance the following two matches fail in khtml:
blockquote > div p
On BLOCKQUOTE > DIV > DIV > P, because P matches the descendant selector on the first DIV which fails the child selector

blockquote + div ~ p
On BLOCKQUOTE, DIV, DIV, P, because P matches the indirect adjacency selector on the first DIV which fail its direct adjacency selector.

To support this we need to be able to go back during the matching process so that any operator that could choose multiple elements have the chance to try them out.
Comment 2 Allan Sandfeld 2005-04-13 23:39:38 UTC
*** Bug 59470 has been marked as a duplicate of this bug. ***
Comment 3 Allan Sandfeld 2006-04-04 18:58:53 UTC
SVN commit 526442 by carewolf:

Implement nondeterministic CSS matching
BUG: 103285
BUG: 101115


 M  +8 -1      ChangeLog  
 M  +128 -99   css/cssstyleselector.cpp  
 M  +3 -1      css/cssstyleselector.h