Sam Richard
@Snugug
BBQ lead, ChromeOS DevRel. Mostly food, sometimes design and development, especially for the web. 7008px tall. He/him.
An archive of my Twitter timeline up until I moved to Mastodon. You can find me there at @[email protected]
Currently playing with Custom Elements as a way to build out master slides for a web-based slide deck. Need an interesting mix of shadow’d and non-shadow’d elements to do so for Stage Fright, but I think it’ll work!
First roadblock: extending an existing Custom Element class and having the base class’s
connectedCallback
fire as expected. Fortunately, for my use case, this is easy to extract in to a functionLooks like ask this work was for naught, and what I really need is the in progress CSS Shadow Parts spec.
Related to all of this, does anyone have a good workflow for writing a Vue-like Single File Component w/CSS processing to spit out a standard JS only Web Component? That would be ideal for me for maintenance and distribution.
Ok, so I’ve successfully built a little tool for myself to do this!
vue-parser
andrecast
are the stars here. I’m gonna clean it up a bit and see about releasing it! Don’t know if anyone else is interested, but it was fun to build and it’ll help me.