Commit 620b8000 authored by Glenn Adams's avatar Glenn Adams

Continue populating level2 property support.

parent 7328f7e1
Wed, 10 Sep 2014 15:50:09 GMT
\ No newline at end of file
Wed, 10 Sep 2014 17:30:09 GMT
\ No newline at end of file
......@@ -9,6 +9,7 @@
"dontExtract": true,
"dontExtractReason": "no IDL",
"helpers": [
"Background",
"BackgroundColor",
"BackgroundImage",
"BackgroundPosition"
......@@ -35,6 +36,18 @@
"name": "background-position",
"section": "14.2.1",
"initial": "0% 0%"
},
{
"name": "background-repeat",
"section": "14.2.1",
"valueType": "enum",
"values": [ "repeat", "repeat-x", "repeat-y", "no-repeat" ],
"initial": "repeat"
},
{
"name": "background",
"section": "14.2.1",
"initial": "transparent none repeat scroll 0% 0%"
}
]
}
"use strict";
function getBackgroundValues() {
return [
"red",
"url(http://example.com/image.png)"
"repeat",
"scroll",
"0% 0%",
"red url(http://example.com/image.png)",
"red repeat",
"red scroll",
"red 0% 0%",
"red url(http://example.com/image.png) repeat",
"red url(http://example.com/image.png) scroll",
"red url(http://example.com/image.png) 0% 0%",
"red url(http://example.com/image.png) repeat scroll",
"red url(http://example.com/image.png) repeat 0% 0%",
"red url(http://example.com/image.png) repeat scroll 0% 0%",
"red url(http://example.com/image.png)",
"repeat red",
"scroll red",
"0% 0% red",
"repeat url(http://example.com/image.png) red",
"scroll url(http://example.com/image.png) red",
"0% 0% url(http://example.com/image.png) red",
"scroll repeat url(http://example.com/image.png) red",
"0% 0% repeat url(http://example.com/image.png) red",
"0% 0% scroll repeat url(http://example.com/image.png) red"
];
}
Wed, 10 Sep 2014 15:52:31 GMT
\ No newline at end of file
Wed, 10 Sep 2014 17:32:29 GMT
\ No newline at end of file
Wed, 10 Sep 2014 16:05:50 GMT
\ No newline at end of file
Wed, 10 Sep 2014 17:45:03 GMT
\ No newline at end of file
<!-- Copyright (C) 2014, Cable Television Laboratories, Inc. & Skynav, Inc. -->
<!-- DO NOT EDIT! This test was generated by $(CVP2TS)/tools/level2/generate/generate.js. -->
<!doctype html>
<meta charset='utf-8'>
<title>Property background Tests</title>
<script src='/resources/testharness.js'></script>
<script src='/resources/testharnessreport.js'></script>
<script src='/tools/common/level2.js'></script>
<script src='./helpers/Background.js'></script>
<script type='text/plain' id='propDef'>
{"name":"background","section":"14.2.1","initial":"transparent none repeat scroll 0% 0%","type":"property","nameNormalized":"Background"}
</script>
<h1>Test Property background Support</h1>
<div id='log'></div>
<script>
level2('css21', JSON.parse(document.getElementById('propDef').textContent));
</script>
<!-- Copyright (C) 2014, Cable Television Laboratories, Inc. & Skynav, Inc. -->
<!-- DO NOT EDIT! This test was generated by $(CVP2TS)/tools/level2/generate/generate.js. -->
<!doctype html>
<meta charset='utf-8'>
<title>Property background-repeat Tests</title>
<script src='/resources/testharness.js'></script>
<script src='/resources/testharnessreport.js'></script>
<script src='/tools/common/level2.js'></script>
<script type='text/plain' id='propDef'>
{"name":"background-repeat","section":"14.2.1","valueType":"enum","values":["repeat","repeat-x","repeat-y","no-repeat"],"initial":"repeat","type":"property","nameNormalized":"BackgroundRepeat"}
</script>
<h1>Test Property background-repeat Support</h1>
<div id='log'></div>
<script>
level2('css21', JSON.parse(document.getElementById('propDef').textContent));
</script>
"use strict";
function getBackgroundValues() {
return [
"red",
"url(http://example.com/image.png)"
"repeat",
"scroll",
"0% 0%",
"red url(http://example.com/image.png)",
"red repeat",
"red scroll",
"red 0% 0%",
"red url(http://example.com/image.png) repeat",
"red url(http://example.com/image.png) scroll",
"red url(http://example.com/image.png) 0% 0%",
"red url(http://example.com/image.png) repeat scroll",
"red url(http://example.com/image.png) repeat 0% 0%",
"red url(http://example.com/image.png) repeat scroll 0% 0%",
"red url(http://example.com/image.png)",
"repeat red",
"scroll red",
"0% 0% red",
"repeat url(http://example.com/image.png) red",
"scroll url(http://example.com/image.png) red",
"0% 0% url(http://example.com/image.png) red",
"scroll repeat url(http://example.com/image.png) red",
"0% 0% repeat url(http://example.com/image.png) red",
"0% 0% scroll repeat url(http://example.com/image.png) red"
];
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment