Bug 16706
Summary: | CSS3: "#div1 ~ div div + div > div" fails to update after dom change (Acid3 bug) | ||
---|---|---|---|
Product: | WebKit | Reporter: | Eric Seidel (no email) <eric> |
Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | bdakin, webkit |
Priority: | P2 | Keywords: | NeedsReduction |
Version: | 528+ (Nightly build) | ||
Hardware: | Mac | ||
OS: | OS X 10.4 | ||
Bug Depends on: | |||
Bug Blocks: | 17064 |
Eric Seidel (no email)
CSS3: "#div1 ~ div div + div > div" fails to update after dom change (Acid3 bug)
function () {
// test 41: +, ~, >, and ' ' in dynamic situations
selectorTest(function (doc, add, expect) {
var div1 = doc.createElement('div');
div1.id = "div1";
doc.body.appendChild(div1);
var div2 = doc.createElement('div');
doc.body.appendChild(div2);
var div3 = doc.createElement('div');
doc.body.appendChild(div3);
var div31 = doc.createElement('div');
div3.appendChild(div31);
var div311 = doc.createElement('div');
div31.appendChild(div311);
var div3111 = doc.createElement('div');
div311.appendChild(div3111);
var match = add("#div1 ~ div div + div > div");
expect(div1, 0, "failure 1");
expect(div2, 0, "failure 2");
expect(div3, 0, "failure 3");
expect(div31, 0, "failure 4");
expect(div311, 0, "failure 5");
expect(div3111, 0, "failure 6");
var div310 = doc.createElement('div');
div31.insertBefore(div310, div311);
expect(div1, 0, "failure 7");
expect(div2, 0, "failure 8");
expect(div3, 0, "failure 9");
expect(div31, 0, "failure 10");
expect(div310, 0, "failure 11");
expect(div311, 0, "failure 12");
expect(div3111, match, "rule did not start matching after change");
});
We fail the last expect:
expect(div3111, match, "rule did not start matching after change");
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Robert Blaut
I think it's a duplication of a bug 11384, isn't it?
Robert Blaut
*** This bug has been marked as a duplicate of 11384 ***