diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
commit | 40a355a42d4a9444dc753c04c6608dade2f06a23 (patch) | |
tree | 871fc667d2de662f171103ce5ec067014ef85e61 /layout/style/test/property_database.js | |
parent | Adding upstream version 124.0.1. (diff) | |
download | firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.tar.xz firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.zip |
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/style/test/property_database.js')
-rw-r--r-- | layout/style/test/property_database.js | 84 |
1 files changed, 55 insertions, 29 deletions
diff --git a/layout/style/test/property_database.js b/layout/style/test/property_database.js index 422f2ffe5c..2e8b4c71a3 100644 --- a/layout/style/test/property_database.js +++ b/layout/style/test/property_database.js @@ -13604,36 +13604,32 @@ if (IsCSSPropertyPrefEnabled("layout.css.backdrop-filter.enabled")) { }; } -if (IsCSSPropertyPrefEnabled("layout.css.math-depth.enabled")) { - gCSSProperties["math-depth"] = { - domProp: "mathDepth", - inherited: true, - type: CSS_TYPE_LONGHAND, - initial_values: ["0"], - other_values: [ - // auto-add cannot be tested here because it has no effect when the - // inherited math-style is equal to the default (normal). - "123", - "-123", - "add(123)", - "add(-123)", - "calc(1 + 2*3)", - "add(calc(4 - 2/3))", - ], - invalid_values: ["auto", "1,23", "1.23", "add(1,23)", "add(1.23)"], - }; -} +gCSSProperties["math-depth"] = { + domProp: "mathDepth", + inherited: true, + type: CSS_TYPE_LONGHAND, + initial_values: ["0"], + other_values: [ + // auto-add cannot be tested here because it has no effect when the + // inherited math-style is equal to the default (normal). + "123", + "-123", + "add(123)", + "add(-123)", + "calc(1 + 2*3)", + "add(calc(4 - 2/3))", + ], + invalid_values: ["auto", "1,23", "1.23", "add(1,23)", "add(1.23)"], +}; -if (IsCSSPropertyPrefEnabled("layout.css.math-style.enabled")) { - gCSSProperties["math-style"] = { - domProp: "mathStyle", - inherited: true, - type: CSS_TYPE_LONGHAND, - initial_values: ["normal"], - other_values: ["compact"], - invalid_values: [], - }; -} +gCSSProperties["math-style"] = { + domProp: "mathStyle", + inherited: true, + type: CSS_TYPE_LONGHAND, + initial_values: ["normal"], + other_values: ["compact"], + invalid_values: [], +}; if (IsCSSPropertyPrefEnabled("layout.css.forced-color-adjust.enabled")) { gCSSProperties["forced-color-adjust"] = { @@ -14088,6 +14084,36 @@ if (IsCSSPropertyPrefEnabled("layout.css.prefixes.transitions")) { }); } +if (IsCSSPropertyPrefEnabled("layout.css.transition-behavior.enabled")) { + Object.assign(gCSSProperties, { + "transition-behavior": { + domProp: "transitionBehavior", + inherited: false, + type: CSS_TYPE_LONGHAND, + applies_to_marker: true, + initial_values: ["normal"], + other_values: ["allow-discrete"], + invalid_values: ["none", "auto", "discrete"], + }, + }); + + gCSSProperties["transition"].subproperties.push("transition-behavior"); + gCSSProperties["transition"].initial_values.push("normal"); + gCSSProperties["transition"].other_values.push( + "allow-discrete", + "width allow-discrete", + "1s allow-discrete", + "linear allow-discrete" + ); + gCSSProperties["-webkit-transition"].subproperties.push( + "transition-behavior" + ); + + if (IsCSSPropertyPrefEnabled("layout.css.prefixes.transitions")) { + gCSSProperties["-moz-transition"].subproperties.push("transition-behavior"); + } +} + // Copy aliased properties' fields from their alias targets. Keep this logic // at the bottom of this file to ensure all the aliased properties are // processed. |