| Index: third_party/WebKit/LayoutTests/typedcssom/inlinestyle/left-top-right-bottom.html
|
| diff --git a/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/left-top-right-bottom.html b/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/left-top-right-bottom.html
|
| index f0e30f98ecd50fda4f308cbf73170ee2c5e0b74f..bbd86b1ed4d839a0076acf4252007faab687ab47 100644
|
| --- a/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/left-top-right-bottom.html
|
| +++ b/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/left-top-right-bottom.html
|
| @@ -129,7 +129,7 @@ test(function() {
|
| assert_equals(left.constructor, CSSCalcLength);
|
| assert_equals(left.percent, 60);
|
| assert_equals(left.px, 20);
|
| -}, "Getting left works with a simple percent");
|
| +}, "Getting left works with a calc length");
|
|
|
| test(function() {
|
| testElement.style = "top:calc(70% - 50px);";
|
| @@ -138,24 +138,24 @@ test(function() {
|
| assert_equals(top.constructor, CSSCalcLength);
|
| assert_equals(top.percent, 70);
|
| assert_equals(top.px, -50);
|
| -}, "Getting top works with a simple percent");
|
| +}, "Getting top works with a calc length");
|
|
|
| test(function() {
|
| testElement.style = "right:calc(80% + 20em);";
|
|
|
| var right = styleMap.get('right');
|
| - assert_equals(right.constructor, CSSSimpleLength);
|
| + assert_equals(right.constructor, CSSCalcLength);
|
| assert_equals(right.percent, 80);
|
| assert_equals(right.em, 20);
|
| -}, "Getting right works with a simple percent");
|
| +}, "Getting right works with a calc length");
|
|
|
| test(function() {
|
| testElement.style = "bottom:calc(80% - 30rem);";
|
|
|
| var bottom = styleMap.get('bottom');
|
| - assert_equals(bottom.constructor, CSSSimpleLength);
|
| - assert_equals(bottom.value, 80);
|
| + assert_equals(bottom.constructor, CSSCalcLength);
|
| + assert_equals(bottom.percent , 80);
|
| assert_equals(bottom.rem, -30);
|
| -}, "Getting bottom works with a simple percent");
|
| +}, "Getting bottom works with a calc length");
|
|
|
| </script>
|
|
|