elements
option should find inline styles on descendent elements
#289
Labels
elements
option should find inline styles on descendent elements
#289
Is your feature request related to how this polyfill works? Please describe.
Given this HTML
and calling:
Inline styles on
#anchor
and#target
are not polyfilled. It would be useful to not have to pass each individual element, but instead just the wrapper.Describe the solution you'd like
Adjust the polyfill so that if an
element
is passed, it AND its entire subtree are evaluated for inline anchor styles.Describe alternatives you've considered
We could make this opt in, perhaps with a
includeChildInlineStyles
or an alternate toelements
, but I think it's unlikely that people will want to not polyfill children.Additional context
Codepen Repro
The text was updated successfully, but these errors were encountered: