Bug 1967104 - Hackily fix SpecifiedValueInfo to fix test_bug877690.html.
Making it conditional properly is kind of a pain right now and not something I should land without review. Add a test so that we don't forget to remove this or make it properly conditional when shipping it to content.
This commit is contained in:
committed by
ctuns@mozilla.com
parent
42784a5093
commit
fad7f51305
@@ -89,6 +89,10 @@ function do_test() {
|
|||||||
expected.push("cross-fade");
|
expected.push("cross-fade");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(SpecialPowers.getBoolPref("layout.css.light-dark.images.enabled")) {
|
||||||
|
expected.push("light-dark");
|
||||||
|
}
|
||||||
|
|
||||||
ok(testValues(values, expected), "property background values.");
|
ok(testValues(values, expected), "property background values.");
|
||||||
|
|
||||||
var prop = "border";
|
var prop = "border";
|
||||||
|
|||||||
@@ -52,7 +52,9 @@ pub enum GenericImage<G, ImageUrl, Color, Percentage, Resolution> {
|
|||||||
ImageSet(Box<GenericImageSet<Self, Resolution>>),
|
ImageSet(Box<GenericImageSet<Self, Resolution>>),
|
||||||
|
|
||||||
/// A `light-dark()` function.
|
/// A `light-dark()` function.
|
||||||
LightDark(Box<GenericLightDark<Self>>),
|
/// NOTE(emilio): #[css(skip)] only affects SpecifiedValueInfo. Remove or make conditional
|
||||||
|
/// if/when shipping light-dark() for content.
|
||||||
|
LightDark(#[css(skip)] Box<GenericLightDark<Self>>),
|
||||||
}
|
}
|
||||||
|
|
||||||
pub use self::GenericImage as Image;
|
pub use self::GenericImage as Image;
|
||||||
|
|||||||
Reference in New Issue
Block a user