Status
MacSurf has real inline-style mutation and full-document recascade/reconvert support, but the JavaScript CSSOM stylesheet surface is not currently represented in the issue tracker. Repository search finds no current document.styleSheets / CSSStyleSheet.insertRule / deleteRule implementation.
This matters for libraries that inject or edit stylesheet rules rather than setting element.style or adding <style> text directly.
V1 scope
document.styleSheets collection for author stylesheets.
- Basic
CSSStyleSheet wrappers.
cssRules read access for ordinary style rules.
insertRule(rule, index).
deleteRule(index).
- Trigger the existing style invalidation/reconvert pipeline after rule mutation.
Defer the complete CSSOM type hierarchy, constructable stylesheets, adoptedStyleSheets, and every specialized rule interface until driven by real pages.
Acceptance
A script can inspect a page stylesheet, insert a .probe { color: red } rule, see it affect an existing element, then delete that rule and see the style revert. Wrapper ownership survives navigation without leaking stale stylesheet objects. Focused QuickJS/libcss tests plus iMac verification.
Status
MacSurf has real inline-style mutation and full-document recascade/reconvert support, but the JavaScript CSSOM stylesheet surface is not currently represented in the issue tracker. Repository search finds no current
document.styleSheets/CSSStyleSheet.insertRule/deleteRuleimplementation.This matters for libraries that inject or edit stylesheet rules rather than setting
element.styleor adding<style>text directly.V1 scope
document.styleSheetscollection for author stylesheets.CSSStyleSheetwrappers.cssRulesread access for ordinary style rules.insertRule(rule, index).deleteRule(index).Defer the complete CSSOM type hierarchy, constructable stylesheets,
adoptedStyleSheets, and every specialized rule interface until driven by real pages.Acceptance
A script can inspect a page stylesheet, insert a
.probe { color: red }rule, see it affect an existing element, then delete that rule and see the style revert. Wrapper ownership survives navigation without leaking stale stylesheet objects. Focused QuickJS/libcss tests plus iMac verification.