Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/css3/motion-path/offset-position.html |
| diff --git a/third_party/WebKit/LayoutTests/css3/motion-path/offset-position.html b/third_party/WebKit/LayoutTests/css3/motion-path/offset-position.html |
| index 3015e272c4afa11b6726e3c9bfc4e833e0bd2cd0..90b43a86dae11eb7d199ce65ed503875e8b98669 100644 |
| --- a/third_party/WebKit/LayoutTests/css3/motion-path/offset-position.html |
| +++ b/third_party/WebKit/LayoutTests/css3/motion-path/offset-position.html |
| @@ -11,10 +11,18 @@ body { |
| #child1 { |
| offset-position: inherit; |
| } |
| +#child3 { |
| + offset-position: left 10% top; /* invalid */ |
| +} |
| +#child4 { |
| + offset-position: bottom 10% right 20%; |
| +} |
| </style> |
| <div id="container"> |
| <div id="child1"></div> |
| <div id="child2"></div> |
| + <div id="child3"></div> |
| + <div id="child4"></div> |
| </div> |
| <script> |
| "use strict"; |
| @@ -37,6 +45,14 @@ test(function() { |
| assert_equals(getComputedStyle(child2, null).offsetPosition, 'auto'); |
| }, 'offset-position is not inherited by default'); |
| +test(function() { |
| + assert_equals(getComputedStyle(child3, null).offsetPosition, 'auto'); |
| +}, 'offset-position may not use three values'); |
|
Bugs Nash
2017/05/22 01:12:56
The CL description says that offset-position hasn'
Eric Willigers
2017/05/22 03:52:05
I have clarified the CL description. The property
|
| + |
| +test(function() { |
| + assert_equals(getComputedStyle(child4, null).offsetPosition, '80% 90%'); |
| +}, 'offset-position may use four values'); |
| + |
| function computed(specified) { |
| var element = document.createElement('div'); |
| element.style['offset-position'] = specified; |