On Sat, Oct 21, 2017, at 01:47 AM, Dave Townsend wrote:
> Are there any other concerns that we're missing?

One thing I'm wondering about is memory usage of the Web Components
implementations of these components compared to the XBL ones.
Specifically for style, XBL has the ability to list the style sheets
that apply to the shadow tree declaratively, and we use that to have
only a single copy of the cascade data in memory (and we do the work of
creating the cascade data only once).  If we put <style> elements in the
shadow tree, then we will lose the ability to share the cascade data.
(Unless we do something tricky like check the actual style sheet text
when looking up our cascade data cache.)  Happily I think if we stick to
using <link rel=stylesheet>s in the shadow trees, we can make our
existing cascade data cache work here.
I filedĀ https://bugzilla.mozilla.org/show_bug.cgi?id=1410578 for getting
<link rel=stylesheet> working in shadow trees and
https://bugzilla.mozilla.org/show_bug.cgi?id=1410579 for the cascade
data cache extension.
_______________________________________________
dev-platform mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to