The rendersubtree attribute allows the developer to inform the browser that rendering may be skipped in the subtree of the element. The values of rendersubtree attribute are space separated tokens that indicate the desired behavior.
“invisible”: indicates that the content of the subtree should not be drawn to screen, or hit-tested.
“activatable”: indicates that the browser can replace the value of rendersubtree with an empty string. This happens in specified situations where it is desirable to draw the content (e.g. find-in-page locates an entry in the rendersubtree=”invisible activatable” subtree, https://github.com/WICG/display-locking#element-activation-by-the-user-agent)
Note that the presence of the rendersubtree attribute forces layout and style containment.
CSS content-size is a feature that allows easier adoption of rendersubtree by supplying the developers the ability to specify placeholder size while rendersubtree=invisible is active.
Origin trial status document:
Explainer for both these features can be found here:
Link to “Intent to Implement” blink-dev discussion
Goals for experimentation
The goals of the experiment are to gather feedback from developers in the form of the following:
Feedback on ergonomics of use: Can the feature be used easily? Are there any unforeseen barriers that prevent easy adoption?
Feedback on performance changes. Specifically, is there an observable performance benefit for load time and rendering update time when the attribute is specified?
The answers to these questions will help guide the final API shape of the feature, as well as provide metrics numbers which act as evidence for the performance benefits of the attribute.
Any risks when the experiment finishes?
Ongoing technical constraints
Elements within a rendersubtree=invisible subtree, when inspected, will cause DevTools to highlight the ancestor with the attribute, as well as text informing the developer/user that what is shown is the locked ancestor.
Will this feature be supported on all five Blink platforms supported by Origin Trials (Windows, Mac, Linux, Chrome OS, and Android)?
Link to entry on the feature dashboard
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/b25e45f5-31b4-4517-8b3a-9f00dab635d3%40chromium.org.