-
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix set Element.style.cssText API.
- Loading branch information
Showing
2 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
integration_tests/specs/cssom/cssom-setCssText-serialize.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>CSSOM Parsing Test: getting cssText must return the result of serializing the CSS declaration blocks.</title> | ||
<link rel="author" title="Paul Irish" href="mailto:paul.irish@gmail.com"> | ||
<link rel="help" href="http://www.w3.org/TR/cssom-1/#the-cssstyledeclaration-interface"> | ||
|
||
<meta name="flags" content="dom"> | ||
</head> | ||
|
||
<body> | ||
<div id="log"></div> | ||
<div id="box"></div> | ||
<script> | ||
var style = document.getElementById('box').style; | ||
style.cssText = 'left: 10px'; | ||
assert_equals(style.left, '10px'); | ||
style.cssText = 'right: 20px; left: 10px'; | ||
assert_equals(style.left, '10px'); | ||
assert_equals(style.right, '20px'); | ||
</script> | ||
</body> | ||
</html> |