This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum ShadowSpecifiedValue { | |
None, | |
struct Shadow shdw | |
} | |
struct Shadow { | |
... | |
} | |
pub fn parse(context: &ParserContext, input: &mut Parser) -> Result<Shadow, ()> { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#[test] | |
fn blur_radius_should_not_accept_negavite_values() { | |
use style::properties::longhands::box_shadow; | |
let result = parse_longhand!(box_shadow, "1px 1px -1px"); | |
assert_eq!(result, ""); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0xF7A933c1C216919680b1CcB1c8d5Cf1176262e29 |