Replaces the first placeholder in a bundled stylesheet with the generated
CSS, at the offset the marker occupies.
Position is the point: the marker sits where Vite placed virtual:fuz.css
in the importer's stylesheet, so writing the generated CSS there reproduces
the import order the source asked for. Appending to the end of the asset
instead would silently move fuz_css's :root after every stylesheet bundled
alongside it, so an app's own equal-specificity token override would win in
dev (where the virtual module is served in place) and lose in the production
bundle.
Usually the marker is its own rule, but a minifier that merges adjacent
rules with identical selectors (lightningcss is one; esbuild, Vite's
default, isn't) folds neighboring :root declarations into the marker's
block - from either or both sides. Declaration order preserves the merged
rules' order, so splitting the block at the marker keeps the cascade exact:
declarations before it came from stylesheets bundled before
virtual:fuz.css and stay before the generated CSS, declarations after it
stay after. The solo-rule case is the same split with both sides empty.
The marker's rule starts after whatever ends the preceding construct: a
rule's }, a statement at-rule's ; (@charset, @import, which a
bundler hoists ahead of the first rule), or an enclosing block's {.
Comments, strings, and unquoted url()s are read past, since one can hold
any of those - an unminified build or a preserved /*! *\/ comment leaves
them in, and a content string or a URL can hold a /* of its own.