CssStyleDeclaration needs operator[] method #13058
Labels
closed-duplicate
Closed in favor of an existing report
web-libraries
Issues impacting dart:html, etc., libraries
Milestone
This issue was originally filed by Misko.H...@gmail.com
CssStyleDeclartion does not support operator[] notation. CssStyleDeclartion should implement Map methods.
Often times when working with styles one gets the styles in the Map format. There is no easy way to copy the Map properties into the CssStyleDeclartion object without resorting to reflection or complex switch statement.
It is also often useful to enumerate the styles which are declared on the element. Again this is not possible with the current API.
Treating CssStyleDeclartion as both Map and direct property access would be the best solution.
The text was updated successfully, but these errors were encountered: