Unlike aggressive structural optimizers that merge declaration blocks or reorder selectors—which can inadvertently alter cascade specificity and break CSS custom property overrides—running CSSO with restructure: false focuses strictly on deterministic, token-level compaction in compliance with W3C CSS Syntax Module Level 3.
Given a formatted stylesheet:
/* Navigation link state */
a:hover::before {
content: "a: b; /*keep*/";
width: calc(100% - 2px);
margin: 0px 12px;
}
CSSO strips the block comment, removes insignificant spaces and trailing semicolons, preserves the literal comment-like text inside the quoted content string, and retains the mandatory whitespace around the - operator inside calc(100% - 2px).