mirror of
https://github.com/servo/servo.git
synced 2025-06-25 01:24:37 +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")
|
log_css_error(rule.location, "@charset must be the first rule")
|
||||||
}
|
}
|
||||||
// Valid @charset rules are just ignored
|
// Valid @charset rules are just ignored
|
||||||
next_state = state;
|
next_state = STATE_IMPORTS;
|
||||||
},
|
},
|
||||||
"import" => {
|
"import" => {
|
||||||
if state > STATE_IMPORTS {
|
if state > STATE_IMPORTS {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue