<commit_before>import { HTMLElement, CSSStyleDeclaration } from '@ephox/dom-globals';

// some elements, such as mathml, don't have style attributes
// others, such as angular elements, have style attributes that aren't a CSSStyleDeclaration
const isSupported = (dom: HTMLElement) => CSSStyleDeclaration.prototype.isPrototypeOf(dom.style);

export {
  isSupported
};<commit_msg>When is a CSSStyleDeclaration not a prototype of CSSStyleDeclaration? I don't know, but Iwe have switched to checking the getPropertyValue function instead.<commit_after>import { HTMLElement, CSSStyleDeclaration } from '@ephox/dom-globals';
import { Type } from '@ephox/katamari';

// some elements, such as mathml, don't have style attributes
// others, such as angular elements, have style attributes that aren't a CSSStyleDeclaration
const isSupported = (dom: HTMLElement) => dom.style !== undefined && Type.isFunction(dom.style.getPropertyValue);

export {
  isSupported
};
{'fraction_non_alphanumeric': 0.09528795811518324, 'fraction_numerical': 0.0, 'mean_word_length': 5.780141843971631, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1211074', 'n_tokens_mistral': 255, 'n_tokens_neox': 258, 'n_words': 93}