mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
An empty <declaration-value> is invalid.
This commit is contained in:
parent
4bf28417b4
commit
c3b8b39437
1 changed files with 4 additions and 0 deletions
|
@ -34,6 +34,10 @@ pub fn parse(input: &mut Parser) -> Result<Value, ()> {
|
|||
|
||||
/// https://drafts.csswg.org/css-syntax-3/#typedef-declaration-value
|
||||
fn parse_declaration_value(input: &mut Parser, references: &mut HashSet<Atom>) -> Result<(), ()> {
|
||||
if input.is_exhausted() {
|
||||
// Need at least one token
|
||||
return Err(())
|
||||
}
|
||||
while let Ok(token) = input.next() {
|
||||
match token {
|
||||
Token::BadUrl |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue