vbuild icon indicating copy to clipboard operation
vbuild copied to clipboard

Can't mix scoped and non scoped styles

Open icarito opened this issue 6 years ago • 2 comments

It is mentioned in VueJS's docs that this is possible: https://vue-loader.vuejs.org/guide/scoped-css.html#mixing-local-and-global-styles

But trying it didn't work as it seemed to only render the scoped style.

icarito avatar Aug 10 '19 04:08 icarito

it should work as expected ... what is the trouble ? (an example ?)

manatlan avatar Aug 12 '19 13:08 manatlan

yes, you're right ... All my tested scope was with ":scope" like this :

<template>
  <div id="y">Hello Worldo</div>
</template>
<style scoped>
  :scope {background:yellow}
</style>
<style>
  div {border:2px solid red}
</style>

and it works, test in https://manatlan.alwaysdata.net/vbuild/index.html but it's weird

manatlan avatar Aug 13 '19 10:08 manatlan