Custom DOM Querying — Polyfill for Style-Based Element Selection
Implement a custom function getElementsByStyle(property, value) that queries the live DOM and returns all elements whose computed or inline CSS style matches the given property-value pair (e.g., getElementsByStyle('color', 'red') returns all elements with red text color). This does not exist natively in the browser. You must traverse the DOM tree, check both inline styles (element.style) and optionally computed styles (getComputedStyle), and return a static or live NodeList-like array. Handle vendor prefixes, shorthand properties, and case normalization.