From Firefox 63, Gecko eventually (will) ships Shadow DOM and Custom Element as known as Web Components.
These features provides a way to create a custom DOM element and encapsulate it.
I think they would useful to building a view for this add-on.
@piroor can you comment on this? (Sorry, I don't have a sense if this is still applicable today or not)
This was impossible on TST 2.x, but currently TST 3.x is designed very similar to this, so now it may be migratable to WebComponents. Especially if the migration improve performance or maintainability, I agree to do it.
To support TST's _theme_ completly, I suspect it's better to wait CSS Shadow Parts (bug 1551113).
But I think we can replace a simple element with custom element from now.
CSS Shadow Parts will ships in Firefox v72.
By CSS Shadow Parts, I think we can provide a more reasonable way for style customization instead of depending on CSS variables. I suspect we can provide customizable style encapsulation.
With FF72 out, is there more to look at now?
This looks should be progressed experimentally on a branch, until Firefox ESR68 becomes outdated. Maintaining multiple branches is hard for me, so I hope to concentrate to maintain and hope @saneyuki gives me experimental implementation examples...
I'm sorry. I don't have a concrete progress on https://github.com/piroor/treestyletab/pull/2427.
Because:
BTW, I think this issue has been almost done and this is still remains as a meta/umbrella issue. There are rests of pieces to continue Web Components-fication like CSS Shadow Parts and Constructable Stylesheets (BMO). But I don't think they are not strong reason to keep this issue as open status.
Is it the time to close this?
@piroor what do you think of @tetsuharuohzeki comments? (Side note that ESR68 is almost end of life with ESR78 already out)
They looks to be quite different from the current paradigm, so I need a success model case to understand where TST should go to, like the first migration to WebComponents done by @tetsuharuohzeki.
When I tried to implement the Extra Tab Contents API I learned more about CSS Shadow Parts, but sadly my brain is still bound to old methods about styling of UI strongly and I cannot imagine CSS Shadow Parts based TST...