Skip to content

Commit

Permalink
docs: illustrate usage of alternative deep selector expressions (#1647)
Browse files Browse the repository at this point in the history
Without examples of the exact syntax the use of `::v-deep` and `/deep/` as alternative deep selectors is somewhat ambiguous as it’s not entirely clear where these expressions are expected.
  • Loading branch information
kmohrf authored Mar 2, 2021
1 parent 1c2436a commit 039c98a
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/guide/scoped-css.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,19 @@ The above will be compiled into:
.a[data-v-f3f3eg9] .b { /* ... */ }
```

Some pre-processors, such as Sass, may not be able to parse `>>>` properly. In those cases you can use the `/deep/` or `::v-deep` combinator instead - both are aliases for `>>>` and work exactly the same.
Some pre-processors, such as Sass, may not be able to parse `>>>` properly. In those cases you can use the `/deep/` or `::v-deep` combinator instead - both are aliases for `>>>` and work exactly the same. Based on the example above these two expressions will be compiled to the same output:

``` html
<style scoped>
.a::v-deep .b { /* ... */ }
</style>
```

``` html
<style scoped>
.a /deep/ .b { /* ... */ }
</style>
```

## Dynamically Generated Content

Expand Down

0 comments on commit 039c98a

Please sign in to comment.