mirror of
https://github.com/servo/servo.git
synced 2025-06-24 17:14:33 +01:00
Only allow one @charset rule.
This commit is contained in:
parent
be51f4fb8f
commit
b5860f407f
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ fn parse_stylesheet(css: &str) -> Stylesheet {
|
|||
log_css_error(rule.location, "@charset must be the first rule")
|
||||
}
|
||||
// Valid @charset rules are just ignored
|
||||
next_state = state;
|
||||
next_state = STATE_IMPORTS;
|
||||
},
|
||||
"import" => {
|
||||
if state > STATE_IMPORTS {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue