On Tue, Aug 4, 2015 at 9:10 PM, James Burke <jbu...@mozilla.com> wrote: > If the meta tag, or whatever the toggle becomes, is set, then I expect > if the page's JS asks for a DOM element's box properties, it will get > values like 0 for sizes, since I believe the goal is to avoid the > browser doing extra work until the page's JS got everything set up. > > If that is the case, should there be a promise API for knowing when > the first layout and rendering has occurred so that the page's JS can > then ask for element box properties to get accurate values?
That is an interesting point. We haven't really defined in standards which features force layout. We'd have to do that so we can make them behave conditionally as we try to provide some control over (first) layout. -- https://annevankesteren.nl/ _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform