After a layout is completed, I want to parse through the DOM tree and get the computed styles of each element. Is this possible.
The closest I could get is the below snippet, but it gives only uncomputed styles.
Element elm = (Element) _doc.getElementsByTagName("table").item(0);
Map props = _sharedContext.getCss().getCascadedPropertiesMap(elm);
Is it also possible to get which "Box" the element lies in.