Bug 1255401 - fix getCSSValuesForProperty result for "quotes" property; r?heycam
It seemed valid to simply set the expected variants in
nsCSSPropList.h; other properties (e.g., align-content) do this as
well.
MozReview-Commit-ID: HVZGOofkwi1
--- a/devtools/shared/css/generated/properties-db.js
+++ b/devtools/shared/css/generated/properties-db.js
@@ -8122,16 +8122,17 @@ exports.CSS_PROPERTIES = {
"isInherited": true,
"subproperties": [
"quotes"
],
"supports": [],
"values": [
"inherit",
"initial",
+ "none",
"unset"
]
},
"resize": {
"isInherited": false,
"subproperties": [
"resize"
],
--- a/layout/inspector/tests/test_bug877690.html
+++ b/layout/inspector/tests/test_bug877690.html
@@ -212,16 +212,21 @@ function do_test() {
ok(testValues(values, expected), "property background-size's values.");
// Regression test for bug 1255401.
var prop = "all"
var values = InspectorUtils.getCSSValuesForProperty(prop);
var expected = [ "inherit", "initial", "unset" ];
ok(testValues(values, expected), "property all's values.");
+ var prop = "quotes"
+ var values = InspectorUtils.getCSSValuesForProperty(prop);
+ var expected = [ "inherit", "initial", "unset", "none" ];
+ ok(testValues(values, expected), "property quotes's values.");
+
SimpleTest.finish();
}
SimpleTest.waitForExplicitFinish();
addLoadEvent(do_test);
</script>
</head>
--- a/layout/style/nsCSSPropList.h
+++ b/layout/style/nsCSSPropList.h
@@ -3575,17 +3575,17 @@ CSS_PROP_DISPLAY(
CSS_PROP_NO_OFFSET,
eStyleAnimType_Discrete)
CSS_PROP_LIST(
quotes,
quotes,
Quotes,
CSS_PROPERTY_PARSE_FUNCTION,
"",
- 0,
+ VARIANT_HOS,
nullptr,
CSS_PROP_NO_OFFSET,
eStyleAnimType_Discrete)
CSS_PROP_DISPLAY(
resize,
resize,
Resize,
CSS_PROPERTY_PARSE_VALUE |