Normal sheet parsing strips out the first @charset in https://drafts.csswg.org/css-syntax-3/#parse-a-stylesheet. Should parse do the same? Otherwise it seems like the problem the first note at https://drafts.csswg.org/css-syntax-3/#charset-rule talks about (of valid rules getting dropped because of the invalid @charset) would be a problem for "replace".
@tabatkins
Normal sheet parsing strips out the first
@charsetin https://drafts.csswg.org/css-syntax-3/#parse-a-stylesheet. Shouldparsedo the same? Otherwise it seems like the problem the first note at https://drafts.csswg.org/css-syntax-3/#charset-rule talks about (of valid rules getting dropped because of the invalid@charset) would be a problem for "replace".@tabatkins