Skip to content

Pseudo Element Scope Issue #2743

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
DarriusWrightGD opened this issue Oct 15, 2018 · 3 comments · Fixed by vuejs/component-compiler-utils#33
Closed

Pseudo Element Scope Issue #2743

DarriusWrightGD opened this issue Oct 15, 2018 · 3 comments · Fixed by vuejs/component-compiler-utils#33
Labels

Comments

@DarriusWrightGD
Copy link

Version

3.0.5

Reproduction link

https://github.com/DarriusWrightGD/vue-scope-issue.git

Node and OS info

10.11.0 / npm 6.4.1 / macOS 10.13.6

Steps to reproduce

  1. npm run serve
  2. Open the dev tools in chrome
  3. See that the pseudo element ::-webkit-scrollbar, though scoped, still appears in the styles

What is expected?

The pseudo element on the Other.vue component should not be global since the scoped attribute is applied to the style tag.

What is actually happening?

The pseudo element on the Other.vue component is global despite the scope attribute being applied to the style tag.


We were upgrading our company project and noticed that the scrollbar wasn't appearing where it previously was. Here is a codesandbox of an older version of vue's dependencies were the scoping does work with a pseudo element if it helps https://codesandbox.io/s/l9xpxml307.

@LinusBorg LinusBorg added the needs team repro We acknowledged your report and will soon try to reproduce it label Oct 16, 2018
@LinusBorg
Copy link
Member

Note: if this is a bug, it's in vue-loader, not vue-cli

@GitNomster
Copy link

Same problem(

haoqunjiang added a commit to haoqunjiang/component-compiler-utils that referenced this issue Oct 19, 2018
@haoqunjiang haoqunjiang added upstream and removed needs team repro We acknowledged your report and will soon try to reproduce it labels Oct 19, 2018
@haoqunjiang
Copy link
Member

yyx990803 pushed a commit to vuejs/component-compiler-utils that referenced this issue Oct 22, 2018
goldentroll added a commit to goldentroll/component-compiler-utils that referenced this issue Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants