diff options
author | WPT Sync Bot <josh+wptsync@joshmatthews.net> | 2018-04-26 21:09:36 -0400 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2018-04-27 17:36:30 +0200 |
commit | 84b40513c3c87d00cfac71bc9a25645ab2ad889c (patch) | |
tree | 0f7c030e4eaf76bd9ec9887bd4f7b78427c48434 /tests/wpt/web-platform-tests/css/cssom/overflow-serialization.html | |
parent | 73b5bf201f47d831e90546bdec4f5664bad44e0c (diff) | |
download | servo-84b40513c3c87d00cfac71bc9a25645ab2ad889c.tar.gz servo-84b40513c3c87d00cfac71bc9a25645ab2ad889c.zip |
Update web-platform-tests to revision 4f397167b4ed552a02201c92d363cfaecfe2c7f0
Diffstat (limited to 'tests/wpt/web-platform-tests/css/cssom/overflow-serialization.html')
-rw-r--r-- | tests/wpt/web-platform-tests/css/cssom/overflow-serialization.html | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/wpt/web-platform-tests/css/cssom/overflow-serialization.html b/tests/wpt/web-platform-tests/css/cssom/overflow-serialization.html index 7e2d1767a0b..136b8aba117 100644 --- a/tests/wpt/web-platform-tests/css/cssom/overflow-serialization.html +++ b/tests/wpt/web-platform-tests/css/cssom/overflow-serialization.html @@ -2,7 +2,7 @@ <html> <head> <meta charset="utf-8"> - <title>CSSOM - Overlow property has different serialization than other shorthands.</title> + <title>CSSOM - Overflow shorthand serialization</title> <link rel="help" href="https://drafts.csswg.org/cssom/#serialize-a-css-value"> <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> @@ -11,7 +11,7 @@ div { overflow: hidden; } div { overflow-x: initial; overflow-y: initial; } div { overflow-x: scroll; overflow-y: scroll; } - div { overflow-x: inherit; overflow-y: unset; } + div { overflow-x: scroll; overflow-y: hidden; } </style> <script> @@ -22,7 +22,7 @@ assert_equals(styleSheet.cssRules[1].style.cssText, "overflow: hidden;", "Single value overflow with non-CSS-wide keyword should serialize correctly."); assert_equals(styleSheet.cssRules[2].style.cssText, "overflow: initial;", "Overflow-x/y longhands with same CSS-wide keyword should serialize correctly."); assert_equals(styleSheet.cssRules[3].style.cssText, "overflow: scroll;", "Overflow-x/y longhands with same non-CSS-wide keyword should serialize correctly."); - assert_equals(styleSheet.cssRules[4].style.cssText, "overflow-x: inherit; overflow-y: unset;", "Overflow-x/y longhands with different keywords should serialize correctly."); + assert_equals(styleSheet.cssRules[4].style.cssText, "overflow: scroll hidden;", "Overflow-x/y longhands with different keywords should serialize correctly."); var div = document.createElement('div'); div.style.overflow = "inherit"; @@ -40,9 +40,9 @@ div.style.overflowY = "scroll"; assert_equals(div.style.overflow, "scroll", "Overflow-x/y longhands with same non-CSS-wide keyword should serialize correctly."); - div.style.overflowX = "inherit"; - div.style.overflowY = "unset"; - assert_equals(div.style.overflow, "", "Overflow-x/y longhands with different keywords shouldn't serialize."); + div.style.overflowX = "scroll"; + div.style.overflowY = "hidden"; + assert_equals(div.style.overflow, "scroll hidden", "Overflow-x/y longhands with different keywords should serialize correctly."); }); </script> </head> |