A line of CSS that looks like this: div:target~#second Does not match a <div id="second"/> preceded by a <div id="first"/> with a document loaded with doc.html#first although the ~ and the :target do work separately.
Created attachment 31543 [details] Testcase for the sibling and target css
Created attachment 38560 [details] A very detailed test case which provides testing directions for recreating the bug. I too just ran into this bug in the latest nightly (r47686) and have created a very detailed test case which provides testing directions for recreating the bug.
<rdar://problem/7168620>
Created attachment 38575 [details] Updated test case to include a closely related scenario with the adjacent sibling combinator. This bug appears to affect both sibling combinators. I've updated the test case to show the related issue as well. I believe that both issues should be part of this bug and we should rename it.
This is related to Bug 12520
Created attachment 77813 [details] Patch. Allow style recalculation for forward siblings of elements that have a forward positional rule. This will not change behavior or impact performance of pages that do not have forward positional riles.
Comment on attachment 77813 [details] Patch. I was worried that this causes too much style-resolution, but I think it's okay.
Created attachment 91592 [details] Patch Rebaseline
The commit-queue encountered the following flaky tests while processing attachment 91592 [details]: http/tests/xmlhttprequest/failed-auth.html bug 51835 (author: ap@webkit.org) The commit-queue is continuing to process your patch.
Comment on attachment 91592 [details] Patch Clearing flags on attachment: 91592 Committed r85296: <http://trac.webkit.org/changeset/85296>
All reviewed patches have been landed. Closing bug.
http://trac.webkit.org/changeset/85296 might have broken Windows 7 Release (Tests)
The commit-queue encountered the following flaky tests while processing attachment 91592 [details]: http/tests/xmlhttprequest/basic-auth.html bug 51613 (authors: ap@webkit.org and eric@webkit.org) http/tests/xmlhttprequest/xmlhttprequest-50ms-download-dispatch.html bug 52016 (author: jchaffraix@webkit.org) The commit-queue is continuing to process your patch.