Why doesn't Font Awesome work in my Shadow DOM?

前端 未结 5 1660
北荒
北荒 2020-12-16 06:03

Font Awesome is not working in my shadow DOM since I have the following in it to prevent styles from leaking in and out:

:host {
    all: initial; /* 1st rul         


        
5条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-16 06:21

    Shadow Doms's style is scoped. And it does not interfere with outer style

提交回复
热议问题