This repository was archived by the owner on Aug 11, 2022. It is now read-only.

Description
This came up several times during discussions:
It would be nice to know if an element is rendered from script. In one context, it may act as a signal whether to do any script side updates to the element. In another similar context, it may act as a signal to stop or start doing resources fetches for a component.
We should add a way to detect from script whether an element is rendered. Some questions to consider:
- Render subtree element is always itself rendered (unless it is under another locked element), so presumably it would return "rendered is true" even if its locked, and one would have to check its children?
- should this be some sort of an enum "element_and_subtree_rendered, element_is_rendered_subtree_is_not, neither_element_nor_subtree_rendered"?
- How do we handle frames? Should this go up the local frame chain or should this value be relative to the frame's document?