vuejs / repl

Vue SFC REPL as a Vue 3 component
https://repl-vuejs.vercel.app
MIT License
908 stars 163 forks source link

inconsistent browser specific behavior #44

Closed wellrus closed 3 months ago

wellrus commented 2 years ago

caused by https://github.com/vuejs/core/issues/6158

repro url

repro:

last chrome: 1) open url 2) open file Comp.vue 3) remove attribute "scoped" from style tag. both "p" tag has yellow background 4) add attribute "scoped" to style tag. only first "p" tag has yellow background

last firefox: 1) open url 2) open file Comp.vue 3) remove attribute "scoped" from style tag. both "p" tag has yellow background 4) add attribute "scoped" to style tag. both "p" tag has yellow background

expected: because there is a bug https://github.com/vuejs/core/issues/6158 firefox should have only first "p" tag with yellow background

sxzz commented 3 months ago

In the latest Firefox, they work identical. Tested on Chrome 125 and Firefox 126.

If you have any questions, please feel free to reopen it.