| // We only test properties that are exposed in all ports. |
| var propertiesToTest = { |
| "align-content": true, |
| "align-items": true, |
| "align-self": true, |
| "-webkit-animation-delay": true, |
| "-webkit-animation-direction": true, |
| "-webkit-animation-duration": true, |
| "-webkit-animation-fill-mode": true, |
| "-webkit-animation-iteration-count": true, |
| "-webkit-animation-name": true, |
| "-webkit-animation-play-state": true, |
| "-webkit-animation-timing-function": true, |
| "-webkit-appearance": true, |
| "-webkit-backface-visibility": true, |
| "-webkit-background-clip": true, |
| "-webkit-background-composite": true, |
| "-webkit-background-origin": true, |
| "-webkit-background-size": true, |
| "-webkit-border-fit": true, |
| "-webkit-border-horizontal-spacing": true, |
| "-webkit-border-image": true, |
| "-webkit-border-vertical-spacing": true, |
| "-webkit-box-align": true, |
| "-webkit-box-decoration-break": true, |
| "-webkit-box-direction": true, |
| "-webkit-box-flex": true, |
| "-webkit-box-flex-group": true, |
| "-webkit-box-lines": true, |
| "-webkit-box-ordinal-group": true, |
| "-webkit-box-orient": true, |
| "-webkit-box-pack": true, |
| "-webkit-box-reflect": true, |
| "-webkit-box-shadow": true, |
| "-webkit-column-axis": true, |
| "-webkit-column-break-after": true, |
| "-webkit-column-break-before": true, |
| "-webkit-column-break-inside": true, |
| "column-count": true, |
| "column-fill": true, |
| "column-gap": true, |
| "column-rule-color": true, |
| "column-rule-style": true, |
| "column-rule-width": true, |
| "column-span": true, |
| "column-width": true, |
| "counter-increment": true, |
| "counter-reset": true, |
| "flex-basis": true, |
| "flex-direction": true, |
| "flex-flow": true, |
| "flex-grow": true, |
| "flex-shrink": true, |
| "flex-wrap": true, |
| "-webkit-font-kerning": true, |
| "-webkit-font-smoothing": true, |
| "grid-auto-columns": true, |
| "grid-auto-flow": true, |
| "grid-auto-rows": true, |
| "grid-column-end": true, |
| "grid-column-start": true, |
| "grid-row-end": true, |
| "grid-row-start": true, |
| "grid-template-columns": true, |
| "grid-template-rows": true, |
| "-webkit-highlight": true, |
| "-webkit-hyphenate-character": true, |
| "-webkit-hyphenate-limit-after": true, |
| "-webkit-hyphenate-limit-before": true, |
| "-webkit-hyphenate-limit-lines": true, |
| "-webkit-hyphens": true, |
| "justify-content": true, |
| "justify-self": true, |
| "justify-items": true, |
| "-webkit-line-align": true, |
| "-webkit-line-box-contain": true, |
| "-webkit-line-break": true, |
| "-webkit-line-clamp": true, |
| "-webkit-line-grid": true, |
| "-webkit-line-snap": true, |
| "-webkit-locale": true, |
| "-webkit-margin-after-collapse": true, |
| "-webkit-margin-before-collapse": true, |
| "-webkit-marquee-direction": true, |
| "-webkit-marquee-increment": true, |
| "-webkit-marquee-repetition": true, |
| "-webkit-marquee-style": true, |
| "-webkit-mask-attachment": true, |
| "-webkit-mask-box-image": true, |
| "-webkit-mask-box-image-outset": true, |
| "-webkit-mask-box-image-repeat": true, |
| "-webkit-mask-box-image-slice": true, |
| "-webkit-mask-box-image-source": true, |
| "-webkit-mask-box-image-width": true, |
| "-webkit-mask-clip": true, |
| "-webkit-mask-composite": true, |
| "-webkit-mask-image": true, |
| "-webkit-mask-origin": true, |
| "-webkit-mask-position": true, |
| "-webkit-mask-repeat": true, |
| "-webkit-mask-size": true, |
| "-webkit-nbsp-mode": true, |
| "order": true, |
| "perspective": true, |
| "perspective-origin": true, |
| "-webkit-print-color-adjust": true, |
| "-webkit-rtl-ordering": true, |
| "-webkit-text-combine": true, |
| "-webkit-text-decorations-in-effect": true, |
| "-webkit-text-emphasis-color": true, |
| "-webkit-text-emphasis-position": true, |
| "-webkit-text-emphasis-style": true, |
| "-webkit-text-fill-color": true, |
| "-webkit-text-orientation": true, |
| "-webkit-text-security": true, |
| "-webkit-text-stroke-color": true, |
| "-webkit-text-stroke-width": true, |
| "transform": true, |
| "transform-origin": true, |
| "transform-style": true, |
| "-webkit-transform-style": true, |
| "transition-delay": true, |
| "transition-duration": true, |
| "transition-property": true, |
| "transition-timing-function": true, |
| "-webkit-user-drag": true, |
| "-webkit-user-modify": true, |
| "-webkit-user-select": true, |
| "-webkit-writing-mode": true, |
| "alignment-baseline": true, |
| "background-attachment": true, |
| "background-clip": true, |
| "background-color": true, |
| "background-image": true, |
| "background-origin": true, |
| "background-position": true, |
| "background-repeat": true, |
| "background-size": true, |
| "baseline-shift": true, |
| "border-bottom-color": true, |
| "border-bottom-left-radius": true, |
| "border-bottom-right-radius": true, |
| "border-bottom-style": true, |
| "border-bottom-width": true, |
| "border-collapse": true, |
| "border-image-outset": true, |
| "border-image-repeat": true, |
| "border-image-slice": true, |
| "border-image-source": true, |
| "border-image-width": true, |
| "border-left-color": true, |
| "border-left-style": true, |
| "border-left-width": true, |
| "border-right-color": true, |
| "border-right-style": true, |
| "border-right-width": true, |
| "border-top-color": true, |
| "border-top-left-radius": true, |
| "border-top-right-radius": true, |
| "border-top-style": true, |
| "border-top-width": true, |
| "bottom": true, |
| "box-shadow": true, |
| "box-sizing": true, |
| "buffered-rendering": true, |
| "caption-side": true, |
| "clear": true, |
| "clip": true, |
| "clip-path": true, |
| "clip-rule": true, |
| "color": true, |
| "color-interpolation": true, |
| "color-interpolation-filters": true, |
| "color-rendering": true, |
| "content": true, |
| "cursor": true, |
| "direction": true, |
| "display": true, |
| "dominant-baseline": true, |
| "empty-cells": true, |
| "fill": true, |
| "fill-opacity": true, |
| "fill-rule": true, |
| "filter": true, |
| "float": true, |
| "flood-color": true, |
| "flood-opacity": true, |
| "font-size": true, |
| "font-style": true, |
| "font-synthesis": true, |
| "font-variant": true, |
| "font-variant-alternates": true, |
| "font-variant-caps": true, |
| "font-variant-east-asian": true, |
| "font-variant-ligatures": true, |
| "font-variant-numeric": true, |
| "font-variant-position": true, |
| "font-weight": true, |
| "font-optical-sizing": true, |
| "glyph-orientation-horizontal": true, |
| "glyph-orientation-vertical": true, |
| "hanging-punctuation": true, |
| "height": true, |
| "image-rendering": true, |
| "kerning": true, |
| "left": true, |
| "letter-spacing": true, |
| "lighting-color": true, |
| "line-height": true, |
| "list-style-image": true, |
| "list-style-position": true, |
| "list-style-type": true, |
| "margin-bottom": true, |
| "margin-left": true, |
| "margin-right": true, |
| "margin-top": true, |
| "marker-end": true, |
| "marker-mid": true, |
| "marker-start": true, |
| "mask": true, |
| "mask-type": true, |
| "max-height": true, |
| "max-width": true, |
| "min-height": true, |
| "min-width": true, |
| "object-fit": true, |
| "object-position": true, |
| "opacity": true, |
| "orphans": true, |
| "outline-color": true, |
| "outline-offset": true, |
| "outline-style": true, |
| "outline-width": true, |
| "overflow-wrap": true, |
| "overflow-x": true, |
| "overflow-y": true, |
| "padding-bottom": true, |
| "padding-left": true, |
| "padding-right": true, |
| "padding-top": true, |
| "page-break-after": true, |
| "page-break-before": true, |
| "page-break-inside": true, |
| "paint-order": true, |
| "pointer-events": true, |
| "position": true, |
| "resize": true, |
| "right": true, |
| "shape-image-threshold": true, |
| "shape-margin": true, |
| "shape-outside": true, |
| "shape-rendering": true, |
| "speak": true, |
| "stop-color": true, |
| "stop-opacity": true, |
| "stroke": true, |
| "stroke-dasharray": true, |
| "stroke-dashoffset": true, |
| "stroke-linecap": true, |
| "stroke-linejoin": true, |
| "stroke-miterlimit": true, |
| "stroke-opacity": true, |
| "stroke-width": true, |
| "tab-size": true, |
| "table-layout": true, |
| "text-align": true, |
| "text-anchor": true, |
| "text-decoration": true, |
| "text-indent": true, |
| "text-overflow": true, |
| "text-rendering": true, |
| "text-shadow": true, |
| "text-transform": true, |
| "top": true, |
| "unicode-bidi": true, |
| "vector-effect": true, |
| "vertical-align": true, |
| "visibility": true, |
| "white-space": true, |
| "widows": true, |
| "width": true, |
| "will-change": true, |
| "word-break": true, |
| "word-spacing": true, |
| "word-wrap": true, |
| "writing-mode": true, |
| "z-index": true, |
| "zoom": true, |
| }; |
| |
| // There properties don't show up when iterating a computed style object, |
| // but we do want to dump their values in tests. |
| var hiddenComputedStyleProperties = [ |
| "background-position-x", |
| "background-position-y", |
| "border-spacing", |
| "overflow", |
| "-webkit-mask-position-x", |
| "-webkit-mask-position-y", |
| ]; |