Evan You

Results 333 comments of Evan You

1. Web Components 中 Custom Elements 规范里命名必须带一个短横 `-`,这基本上是起到强制命名空间的意义。[链接](http://www.w3.org/TR/custom-elements/#concepts) 2. Shadow DOM 内的样式默认就是局部作用域的。[链接](http://www.html5rocks.com/en/tutorials/webcomponents/shadowdom-201/#toc-style-scoped) 3. 通讯 - 从内向外:就是沿用现有的 DOM 事件 API。 - 从外向内:Polymer 的做法是通过暴露公开的属性 (attributes),然后用 MutationObserver 来观察属性的变化,并且保持对应的 property 和 attribute 之间的同步。用法上是 ``...

删掉 shadow dom 代码的事情,是因为 google fork Blink 之后不再维护那部分了,Apple 的人又不想就着烂摊子继续写,所以就删了... 其实他们是想删了以后从头自己写,倒还真不是故意拆台。

@kentcdodds I currently don't have the bandwidth to improve this due to my fork fitting my current use case, but feel free to fork from my fork and see if...

Screenshots are helpful but we can't do anything without actual code.

The problem is injecting the style assumes a DOM environment which will make the library SSR-incompatible. If you only have minimal css, the easiest way is to simply use inline...

This is likely a @rollup/plugin-commonjs issue, since `vue-ssr-carousel`'s dist file is webpack-produced commonjs bundle. Either way, definitely not a Vue core issue. Also, `vue-ssr-carousel` can avoid this by shipping a...

Your reproduction isn't runnable and therefore doesn't really "reproduce" the problem, and seems to be quite different from your other code snippets. Please provide a reproduction that we can actually...

Are you only able to reproduce this with `RouterLink` and not any other component?

Thanks for the PR. We still need a separate test case for this to better document the problem, and we should not introduce test-only logic to fix a case. See...

This is great. Let's add some tests for it