Skip to content
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

Scoped style does not apply to pseudo layers in advanced background #328

Closed
yhatt opened this issue Apr 4, 2022 · 0 comments · Fixed by #329
Closed

Scoped style does not apply to pseudo layers in advanced background #328

yhatt opened this issue Apr 4, 2022 · 0 comments · Fixed by #329
Labels
bug Something isn't working

Comments

@yhatt
Copy link
Member

yhatt commented Apr 4, 2022

Whenever using ![bg]() syntax in advanced background mode, section::before and section::after selectors by setting <style scoped> will not work due to lacked attribute for scoping in <section> element for the pseudo layer.

<!-- paginate: true -->

<style scoped>
section::after {
  color: red;
}
</style>

---

![bg](https://marp.app/assets/hero-background.svg)

<style scoped>
section::after {
  color: red;
}
</style>

In this Markdown, a page number of the second slide will not turn the color to red if enabled advanced background through new Marpit({ inlineSVG: true }).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant