1 function listGetComputedStyle(target) {
2 // These properties have platform dependent values so we ignore them for convenience.
3 var excludedProperties = new Set([
4 '-webkit-tap-highlight-color',
8 // These properties don't show up when iterating a computed style object so we add them explicitly.
9 "-webkit-mask-position-x",
10 "-webkit-mask-position-y",
11 "background-position-x",
12 "background-position-y",
16 var style = getComputedStyle(target);
17 for (var i = 0; i < style.length; i++) {
18 var property = style.item(i);
19 if (!excludedProperties.has(property))
20 properties.push(property);
22 for (var property of properties.sort())
23 debug(property + ': ' + style[property]);