mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Don't serialize currentcolor for border shorthand
This commit is contained in:
parent
f33b0b4ea3
commit
e850d9572a
1 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
|
use cssparser::Color;
|
||||||
use properties::DeclaredValue;
|
use properties::DeclaredValue;
|
||||||
use style_traits::ToCss;
|
use style_traits::ToCss;
|
||||||
use values::specified::{BorderStyle, CSSColor};
|
use values::specified::{BorderStyle, CSSColor};
|
||||||
|
@ -84,7 +85,7 @@ fn serialize_directional_border<W, I,>(dest: &mut W,
|
||||||
};
|
};
|
||||||
|
|
||||||
match *color {
|
match *color {
|
||||||
DeclaredValue::Value(ref color) => {
|
DeclaredValue::Value(ref color) if color.parsed != Color::CurrentColor => {
|
||||||
try!(write!(dest, " "));
|
try!(write!(dest, " "));
|
||||||
color.to_css(dest)
|
color.to_css(dest)
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue