DevTools also uses a scoped stylesheet in its tooltip widget [1]. I have filed a bug [2] to remove it.
Cameron, what bug should this one block (iiuc chrome support will be removed a bit later, so we have some time, do you already have a bug for that part?) Thanks! Patrick [1] http://searchfox.org/mozilla-central/source/devtools/client/shared/widgets/tooltip/HTMLTooltip.js#643 [2] https://bugzilla.mozilla.org/show_bug.cgi?id=1374555 On Tue, Jun 20, 2017 at 7:20 AM, Cameron McCormack <[email protected]> wrote: > On Tue, Jun 20, 2017, at 01:08 PM, Jared Wein wrote: > > We use a scoped stylesheet for styling the popup for <select> [1]. We > > chose this route to limit performance impact as well as limit our > > temporary stylesheet from affecting other parts of the browser UI. > > Will your removal also remove support in the chrome/parent process? > For now we'll keep <style scoped> available in chrome documents. But in > the medium term , we will want to style chrome documents with Servo too > https://bugzilla.mozilla.org/show_bug.cgi?id=1294570, and at that point > we'll have to remove <style scoped> entirely. If generating document- > wide style sheets like > <style> > #some-unique-id-12345 option { ... } > </style> > > isnot performing as well as <style scoped>, we can fix that. (We do > have plans to make this kind of style sheet addition faster than Gecko > handles it currently, which is to re-run selector matching on the entire > document.) > _______________________________________________ > dev-platform mailing list > [email protected] > https://lists.mozilla.org/listinfo/dev-platform > _______________________________________________ dev-platform mailing list [email protected] https://lists.mozilla.org/listinfo/dev-platform

