mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
Update CSS tests to revision 2baa72daab8bf37e3e910a9fd311a1eaa5b0f4a8
This commit is contained in:
parent
662c00a810
commit
df03062d62
10934 changed files with 428309 additions and 254265 deletions
|
@ -0,0 +1,37 @@
|
|||
<!DOCTYPE html>
|
||||
<html><head>
|
||||
<title>CSSOM Parsing Test: getting cssText must return the result of serializing the CSS declaration blocks.</title>
|
||||
<link href="mailto:paul.irish@gmail.com" rel="author" title="Paul Irish">
|
||||
<link href="http://www.w3.org/TR/cssom/#the-cssstyledeclaration-interface" rel="help">
|
||||
|
||||
<link href="http://trac.webkit.org/export/120528/trunk/LayoutTests/fast/css/cssText-cache.html" rel="source">
|
||||
<meta content="dom" name="flags">
|
||||
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="log"></div>
|
||||
|
||||
<div id="box"></div>
|
||||
|
||||
<script>
|
||||
|
||||
var style = document.getElementById('box').style;
|
||||
|
||||
test(function(){
|
||||
|
||||
style.left = "10px";
|
||||
assert_equals(style.cssText, "left: 10px");
|
||||
style.right = "20px";
|
||||
assert_equals(style.cssText, "left: 10px; right: 20px;");
|
||||
|
||||
}, 'CSSStyleDeclaration cssText serializes declaration blocks.');
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
|
||||
</body></html>
|
Loading…
Add table
Add a link
Reference in a new issue