| Index: third_party/WebKit/LayoutTests/css3/motion-path/offset-anchor.html
|
| diff --git a/third_party/WebKit/LayoutTests/css3/motion-path/offset-anchor.html b/third_party/WebKit/LayoutTests/css3/motion-path/offset-anchor.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a0d62896ff2b8b114854d533aed05ae9b11053a5
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/css3/motion-path/offset-anchor.html
|
| @@ -0,0 +1,97 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +<style>
|
| +#div2 {
|
| + offset-anchor: auto;
|
| +}
|
| +#div3 {
|
| + offset-anchor: 10px 20px;
|
| +}
|
| +#div4 {
|
| + offset-anchor: 30px top;
|
| +}
|
| +#div5 {
|
| + offset-anchor: left 40px;
|
| +}
|
| +#div6 {
|
| + offset-anchor: center;
|
| +}
|
| +#div7 {
|
| + offset-anchor: 5em 6em;
|
| + font: 10px Ahem;
|
| +}
|
| +#div8 {
|
| + offset-anchor: 30% 40%;
|
| +}
|
| +#div9 {
|
| + offset-anchor: inherit;
|
| +}
|
| +</style>
|
| +</head>
|
| +<body>
|
| +<div id="div1"></div>
|
| +<div id="div2"></div>
|
| +<div id="div3"></div>
|
| +<div id="div4"></div>
|
| +<div id="div5"></div>
|
| +<div id="div6"></div>
|
| +<div id="div7"></div>
|
| +<div id="div8">
|
| + <div id="div9"></div>
|
| + <div id="div10"></div>
|
| +</div>
|
| +<span id="span1" style="offset-anchor: right bottom"></span>
|
| +
|
| +<script>
|
| +"use strict";
|
| +
|
| +test(function() {
|
| + assert_equals(getComputedStyle(div1, null).offsetAnchor, 'auto');
|
| +}, 'offset-anchor default is auto');
|
| +
|
| +test(function() {
|
| + assert_equals(getComputedStyle(div2, null).offsetAnchor, 'auto');
|
| +}, 'offset-anchor auto remains auto');
|
| +
|
| +test(function() {
|
| + assert_equals(getComputedStyle(div3, null).offsetAnchor, '10px 20px');
|
| +}, 'offset-anchor can be fixed lengths');
|
| +
|
| +test(function() {
|
| + assert_equals(getComputedStyle(div4, null).offsetAnchor, '30px 0%');
|
| +}, 'offset-anchor can be a length and a keyword');
|
| +
|
| +test(function() {
|
| + assert_equals(getComputedStyle(div5, null).offsetAnchor, '0% 40px');
|
| +}, 'offset-anchor can be a keyword and a length');
|
| +
|
| +test(function() {
|
| + assert_equals(getComputedStyle(div6, null).offsetAnchor, '50% 50%');
|
| +}, 'offset-anchor can be supplied with a single keyword');
|
| +
|
| +test(function() {
|
| + assert_equals(getComputedStyle(div7, null).offsetAnchor, '50px 60px');
|
| +}, 'offset-anchor can be supplied with em');
|
| +
|
| +test(function() {
|
| + assert_equals(getComputedStyle(div8, null).offsetAnchor, '30% 40%');
|
| +}, 'offset-anchor is unaffected by child elements');
|
| +
|
| +test(function() {
|
| + assert_equals(getComputedStyle(div9, null).offsetAnchor, '30% 40%');
|
| +}, 'offset-anchor can be explicitly inherited');
|
| +
|
| +test(function() {
|
| + assert_equals(getComputedStyle(div10, null).offsetAnchor, 'auto');
|
| +}, 'offset-anchor is not inherited by default');
|
| +
|
| +test(function() {
|
| + assert_equals(span1.style.offsetAnchor, 'right bottom');
|
| +}, 'offset-anchor style can be set inline');
|
| +
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|