Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Unified Diff: third_party/WebKit/LayoutTests/css3/motion-path/offset-position.html

Issue 2888283006: CSS: Use count position values with 3 parts (Closed)
Patch Set: rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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');
+
+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;

Powered by Google App Engine
This is Rietveld 408576698