--- a/layout/style/test/property_database.js
+++ b/layout/style/test/property_database.js
@@ -6032,52 +6032,16 @@ var gCSSProperties = {
"calc(-2px)",
"calc(50%)",
"calc(3*25px)",
"calc(25px*3)",
"calc(3*25px + 50%)",
],
invalid_values: []
},
- "offset-block-start": {
- domProp: "offsetBlockStart",
- inherited: false,
- type: CSS_TYPE_SHORTHAND_AND_LONGHAND,
- logical: true,
- get_computed: logical_box_prop_get_computed,
- alias_for: "inset-block-start",
- subproperties: [ "inset-block-start" ],
- },
- "offset-block-end": {
- domProp: "offsetBlockEnd",
- inherited: false,
- type: CSS_TYPE_SHORTHAND_AND_LONGHAND,
- logical: true,
- get_computed: logical_box_prop_get_computed,
- alias_for: "inset-block-end",
- subproperties: [ "inset-block-end" ],
- },
- "offset-inline-start": {
- domProp: "offsetInlineStart",
- inherited: false,
- type: CSS_TYPE_SHORTHAND_AND_LONGHAND,
- logical: true,
- get_computed: logical_box_prop_get_computed,
- alias_for: "inset-inline-start",
- subproperties: [ "inset-inline-start" ],
- },
- "offset-block-end": {
- domProp: "offsetInlineEnd",
- inherited: false,
- type: CSS_TYPE_SHORTHAND_AND_LONGHAND,
- logical: true,
- get_computed: logical_box_prop_get_computed,
- alias_for: "inset-inline-end",
- subproperties: [ "inset-inline-end" ],
- },
"padding-block-end": {
domProp: "paddingBlockEnd",
inherited: false,
type: CSS_TYPE_LONGHAND,
applies_to_first_letter: true,
// No applies_to_placeholder because we have a !important rule in forms.css.
logical: true,
get_computed: logical_box_prop_get_computed,
@@ -8119,16 +8083,55 @@ if (IsCSSPropertyPrefEnabled("layout.css
gCSSProperties["-webkit-appearance"] = {
domProp: "WebkitAppearance",
inherited: false,
type: CSS_TYPE_LONGHAND,
alias_for: "-moz-appearance",
};
}
+if (IsCSSPropertyPrefEnabled("layout.css.offset-logical-properties.enabled")) {
+ gCSSProperties["offset-block-start"] = {
+ domProp: "offsetBlockStart",
+ inherited: false,
+ type: CSS_TYPE_SHORTHAND_AND_LONGHAND,
+ logical: true,
+ get_computed: logical_box_prop_get_computed,
+ alias_for: "inset-block-start",
+ subproperties: [ "inset-block-start" ],
+ };
+ gCSSProperties["offset-block-end"] = {
+ domProp: "offsetBlockEnd",
+ inherited: false,
+ type: CSS_TYPE_SHORTHAND_AND_LONGHAND,
+ logical: true,
+ get_computed: logical_box_prop_get_computed,
+ alias_for: "inset-block-end",
+ subproperties: [ "inset-block-end" ],
+ };
+ gCSSProperties["offset-inline-start"] = {
+ domProp: "offsetInlineStart",
+ inherited: false,
+ type: CSS_TYPE_SHORTHAND_AND_LONGHAND,
+ logical: true,
+ get_computed: logical_box_prop_get_computed,
+ alias_for: "inset-inline-start",
+ subproperties: [ "inset-inline-start" ],
+ };
+ gCSSProperties["offset-inline-end"] = {
+ domProp: "offsetInlineEnd",
+ inherited: false,
+ type: CSS_TYPE_SHORTHAND_AND_LONGHAND,
+ logical: true,
+ get_computed: logical_box_prop_get_computed,
+ alias_for: "inset-inline-end",
+ subproperties: [ "inset-inline-end" ],
+ };
+}
+
if (IsCSSPropertyPrefEnabled("layout.css.prefixes.gradients")) {
gCSSProperties["background"].other_values.push(
"-moz-radial-gradient(10% bottom, #ffffff, black) scroll no-repeat",
"-moz-linear-gradient(10px 10px -45deg, red, blue) repeat",
"-moz-linear-gradient(10px 10px -0.125turn, red, blue) repeat",
"-moz-repeating-radial-gradient(10% bottom, #ffffff, black) scroll no-repeat",
"-moz-repeating-linear-gradient(10px 10px -45deg, red, blue) repeat",
"url(404.png), -moz-linear-gradient(20px 20px -45deg, blue, green), -moz-element(#a) black",