Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
westbrookjo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
westbrookjo
7y ago
That's an interesting read. I'm thinking on whether the real question is what is the declarative difference between the video tag, which by normal application lets everyone feel find about that content hidden by the shadow DOM vs
2.
▲
by
westbrookjo
7y ago
Possibly. I think the extra `&`s are something that could wash out with one-time tooling, and that the desire for `@nest .parent &` would bump the conversion rate, but it's always fun to watch the comings and going of standards
3.
▲
by
westbrookjo
7y ago
You might want to check out https://cssdb.org/#nesting-rules native nested CSS rules have hit stage 1!
4.
▲
by
westbrookjo
7y ago
LitHTML and LitElement don't need a specific bundler, they work with whatever tools (or not) you'd like. You might want to get them another look!
5.
▲
by
westbrookjo
7y ago
One thing that is particularly important to take into account when comparing web components to framework is that they can and should work together. If indeed "web components" replace your "framework" it will most likely
6.
▲
by
westbrookjo
7y ago
Even from the beginning of Polymer and it's use of HTML Imports there were tools for bundling them and they worked great! It's even easier to find the right tool for you now that ES Modules deliver the power of web components with
7.
▲
by
westbrookjo
7y ago
You can server side render a `video` element just the same way you would a `custom-element`. We've been doing it for years and there's no reason to think anything about that has changed. If you're looking to deep SSR which is
8.
▲
by
westbrookjo
7y ago
Types are cool, TypeScript is cool, and types with JSDocs are cool, https://dev.to/dakmor/type-safe-web-components-with-jsdoc-4i... and what's more, they're all cool with web components.
9.
▲
by
westbrookjo
7y ago
You might be interested in https://github.com/bennypowers/stripe-elements Stripe v3 with Shadow DOM.
10.
▲
by
westbrookjo
7y ago
Be sure to checkout lit-html and LitElement ( https://lit-html.polymer-project.org & https://lit-element.polymer-project.org )...what you've written about here already exists!