mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +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
29
tests/wpt/css-tests/cssom-1_dev/xhtml1print/index-001.xht
Normal file
29
tests/wpt/css-tests/cssom-1_dev/xhtml1print/index-001.xht
Normal file
|
@ -0,0 +1,29 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head>
|
||||
<title>CSS OM: CSS Values</title>
|
||||
<link href="mailto:manian@adobe.com" rel="author" title="Divya Manian" />
|
||||
<link href="http://www.w3.org/TR/cssom/#css-values" rel="help" />
|
||||
<meta content="dom" name="flags" />
|
||||
<meta content="The style value should be serialized to margin: 20px;" name="assert" />
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="cssomtestElm"></div>
|
||||
<div id="log"></div>
|
||||
<script>
|
||||
var testElm = document.getElementById('cssomtestElm');
|
||||
// Set the transform
|
||||
document.getElementById('cssomtestElm').style.margin = "20px 20px 20px 20px";
|
||||
|
||||
// Verify that the transform was set as expected
|
||||
test(function() {assert_equals(
|
||||
document.getElementById('cssomtestElm').style.cssText, //Actual
|
||||
"margin: 20px;", //Expected
|
||||
"Margin should be serialized as 'margin: 20px;'")}, //Description
|
||||
"margin_20px_20px"); //name
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
</body></html>
|
Loading…
Add table
Add a link
Reference in a new issue