emotion 썸네일형 리스트형 css style tag(rule) 복사하기 키워드: clone css, cloneNode, insertRule, cssText, emotion, CSSOM 상황 @emotion 라이브러리가 만들어주는 style tag를 복사하는 작업을 하고자한다. 해결 과정 emotion이 만든 style tag는 'data-emotion' attribute를 갖고 있음을 확인했다. 따라서 style tag 중, data-emotion 속성을 가진 tag를 복사하면 될 것이다. const emotionStyleTags = Array.prototype.filter.call(document.getElementsByTagName('style'), (style) => style.hasAttribute('data-emotion'), ) const emotionStyleT.. 더보기 이전 1 다음