mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Make sure to parse exhaustively in CSS.supports()
This commit is contained in:
parent
4ad3224ba8
commit
3bd78873df
1 changed files with 1 additions and 1 deletions
|
@ -2298,7 +2298,7 @@ pub extern "C" fn Servo_CSSSupports2(property: *const nsACString,
|
||||||
pub extern "C" fn Servo_CSSSupports(cond: *const nsACString) -> bool {
|
pub extern "C" fn Servo_CSSSupports(cond: *const nsACString) -> bool {
|
||||||
let condition = unsafe { cond.as_ref().unwrap().as_str_unchecked() };
|
let condition = unsafe { cond.as_ref().unwrap().as_str_unchecked() };
|
||||||
let mut input = Parser::new(&condition);
|
let mut input = Parser::new(&condition);
|
||||||
let cond = parse_condition_or_declaration(&mut input);
|
let cond = input.parse_entirely(|i| parse_condition_or_declaration(i));
|
||||||
if let Ok(cond) = cond {
|
if let Ok(cond) = cond {
|
||||||
let url_data = unsafe { dummy_url_data() };
|
let url_data = unsafe { dummy_url_data() };
|
||||||
let reporter = RustLogReporter;
|
let reporter = RustLogReporter;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue