[Webkit-unassigned] [Bug 17082] Acid3 bug: CSS objects in Webkit are not "live"
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Feb 4 05:33:55 PST 2008
http://bugs.webkit.org/show_bug.cgi?id=17082
webkit at blaut.biz changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|WebKit fails Acid3's |Acid3 bug: CSS objects in
|modification of style blocks|Webkit are not "live"
|text node test |
------- Comment #3 from webkit at blaut.biz 2008-02-04 05:33 PDT -------
The acid3 test 73 was changed a little:
function () {
// test 73: dynamic modification of <style> blocks' text nodes, from
Jonas Sicking and Garret Smith
var doc = kungFuDeathGrip.childNodes[3].contentDocument;
assert(doc, "missing document for test");
assert(doc.images[0], "prerequisite failed: no image");
assertEquals(doc.images[0].height, 10, "prerequisite failed: style didn't
affect image");
doc.styleSheets[0].ownerNode.firstChild.data = "img { height: 20px; }";
assertEquals(doc.images[0].height, 20, "change failed to take effect");
doc.styleSheets[0].ownerNode.appendChild(doc.createTextNode("img {
height: 30px; }"));
assertEquals(doc.images[0].height, 30, "append failed to take effect");
var rules = doc.styleSheets[0].cssRules; // "All CSS objects in the DOM
are "live"" says section 2.1, Overview of the DOM Level 2 CSS Interfaces
doc.styleSheets[0].insertRule("img { height: 40px; }", 2);
assertEquals(doc.images[0].height, 40, "insertRule failed to take
effect");
assertEquals(doc.styleSheets[0].cssRules.length, 3, "count of rules is
wrong");
assertEquals(rules.length, 3, "cssRules isn't live");
// while we're at it, check some other things on doc.styleSheets:
assert(doc.styleSheets[0].href === null, "internal stylesheet had a URI:
" + doc.styleSheets[0].href);
assert(document.styleSheets[0].href === null, "internal acid3 stylesheet
had a URI: " + document.styleSheets[0].href);
return 5;
},
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list