The background of this test is to see the performance impact of @scope
in CSS and whether it could be a valid replacement for CSS-in-JS solutions designed to solve the global namespacing problem.
Pick a test:
@scope
without prelude, duplicated per component
@scope
with prelude, duplicated per component
<style>
tags)
@scope
with prelude, without duplication
<style>
tags or rendering logic that outputs them on the first occurance of each component, a kind of half-way house between no build tooling and CSS-in-JS)
Test developed by Ryan Townsend