[cssom-1] CSSStyleSheet.replace[Sync]()
should parse rules according to CSS specs
#6995
Labels
CSSStyleSheet.replace[Sync]()
should parse rules according to CSS specs
#6995
I believe that
CSSStyleSheet.replace()
andCSSStyleSheet.replaceSync()
are missing a step to parse the input rules according to the appropriate CSS specifications, similarly as in parse a CSS rule, run by insert a CSS rule, run byCSSStyleSheet.insertRule()
. Currently, it only parses against basic syntax rules with parse a list of rules, which would mean that something like@namespace "ns" { color: red }
should be added to the CSS rules, which is something that UAs are not doing, obviously.https://drafts.csswg.org/cssom/#dom-cssstylesheet-replace
https://drafts.csswg.org/cssom/#synchronously-replace-the-rules-of-a-cssstylesheet
The text was updated successfully, but these errors were encountered: