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

Unified Diff: third_party/WebKit/LayoutTests/typedcssom/inlinestyle/inlineStylePropertyMap_getProperties.html

Issue 2228313002: Make a function to query whether a CSSPropertyID is valid and whether it has a name. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@asan
Patch Set: Adjust animation dchecks Created 4 years, 4 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/typedcssom/inlinestyle/inlineStylePropertyMap_getProperties.html
diff --git a/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/inlineStylePropertyMap_getProperties.html b/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/inlineStylePropertyMap_getProperties.html
index fb7226660ca2f509e1b90ac7825cb5dc8bb2c9d9..5c12a4b19503043b20c5abbd07558aa52e44531d 100644
--- a/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/inlineStylePropertyMap_getProperties.html
+++ b/third_party/WebKit/LayoutTests/typedcssom/inlinestyle/inlineStylePropertyMap_getProperties.html
@@ -62,4 +62,14 @@ test(function() {
assert_array_equals(testElement.styleMap.getProperties(), ['@apply']);
}, "getProperties returns only one @apply when multiple things are applied");
+
+test(function() {
+ testElement.style.cssText = "@apply --foo; @apply --bar;";
+ testElement.style.setProperty('--my-custom-property', '5px');
+
+ testElement.style['all'] = 'initial';
+ testElement.cloneNode();
+ console.log(testElement.styleMap.getProperties());
+}, "serialize without crashing");
+
</script>

Powered by Google App Engine
This is Rietveld 408576698