Closed theKashey closed 2 years ago
The idea is around the sequential nature of nested selectors:
// `dark-theme` is introduced first
<div class="dark-theme"> "unlocks .dark-theme"
// dependent selectors are always follow
<div class='header'>uses style</div>
This allows embedding a check into usedFilter
- a function before preventing duplication of selectors.
selector
has been introduced - skipparent part of a selector
has NOT been introduced - skipIt does not handle proper gating, and absolutely ignores DOM structure. But it does the job
Currently, any selector will be inlined when the last part of it is found, however we can accept only those ones, which first part was found before as well