mirror of
https://github.com/servo/servo.git
synced 2025-08-17 19:35:33 +01:00
Bug 1374233 - Part 13: Use NonNegative{*} types for components of Shadow and Filter.
MozReview-Commit-ID: Im4KGy1n9IJ
This commit is contained in:
parent
6dd8b159d7
commit
8651acd94c
13 changed files with 84 additions and 53 deletions
|
@ -1241,13 +1241,15 @@ mod shorthand_serialization {
|
|||
|
||||
#[test]
|
||||
fn box_shadow_should_serialize_correctly() {
|
||||
use style::values::specified::length::NonNegativeLength;
|
||||
|
||||
let mut properties = Vec::new();
|
||||
let shadow_val = BoxShadow {
|
||||
base: SimpleShadow {
|
||||
color: None,
|
||||
horizontal: Length::from_px(1f32),
|
||||
vertical: Length::from_px(2f32),
|
||||
blur: Some(Length::from_px(3f32)),
|
||||
blur: Some(NonNegativeLength::from_px(3f32)),
|
||||
},
|
||||
spread: Some(Length::from_px(4f32)),
|
||||
inset: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue