diff options
author | athenian200 <athenian200@outlook.com> | 2020-09-17 16:01:38 -0500 |
---|---|---|
committer | athenian200 <athenian200@outlook.com> | 2020-09-17 16:01:38 -0500 |
commit | b5c9f8e24e6ce368532f893fbd9a517b79096839 (patch) | |
tree | 103df6df754ae5d6dc93a432aeb54254777834b1 /layout/style/test/property_database.js | |
parent | 51764ac7228e723054bf304a381cc83d9067f10a (diff) | |
download | UXP-b5c9f8e24e6ce368532f893fbd9a517b79096839.tar UXP-b5c9f8e24e6ce368532f893fbd9a517b79096839.tar.gz UXP-b5c9f8e24e6ce368532f893fbd9a517b79096839.tar.lz UXP-b5c9f8e24e6ce368532f893fbd9a517b79096839.tar.xz UXP-b5c9f8e24e6ce368532f893fbd9a517b79096839.zip |
Issue #1647 - Part 2: Implement VARIANT_OPACITY to correctly serialize.
Even though percentages are already treated as floats internally by the style system for computation purposes, you have to go out of your way to stop them from being read back out as percentages. What I do here amounts to storing the percentage token in the "wrong" container, the one normally used for floats. This allows a value that was read in as a percentage to be read back out as something else, which is normally prevented by the design of the style system.
Diffstat (limited to 'layout/style/test/property_database.js')
-rw-r--r-- | layout/style/test/property_database.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/layout/style/test/property_database.js b/layout/style/test/property_database.js index b4904f091..1dbd57ba9 100644 --- a/layout/style/test/property_database.js +++ b/layout/style/test/property_database.js @@ -3540,7 +3540,7 @@ var gCSSProperties = { inherited: false, type: CSS_TYPE_LONGHAND, initial_values: [ "1", "17", "397.376", "3e1", "3e+1", "3e0", "3e+0", "3e-0" ], - other_values: [ "0", "0.4", "0.0000", "-3", "3e-1" "-100%", "50%"], + other_values: [ "0", "0.4", "0.0000", "-3", "3e-1" "-100%", "50%" ], invalid_values: [ "0px", "1px" ] }, "-moz-orient": { @@ -4273,7 +4273,7 @@ var gCSSProperties = { inherited: true, type: CSS_TYPE_LONGHAND, initial_values: [ "1", "2.8", "1.000", "300%", "context-fill-opacity", "context-stroke-opacity" ], - other_values: [ "0", "0.3", "-7.3", "-100%", "50%"], + other_values: [ "0", "0.3", "-7.3", "-100%", "50%" ], invalid_values: [] }, "fill-rule": { @@ -4305,8 +4305,8 @@ var gCSSProperties = { domProp: "floodOpacity", inherited: false, type: CSS_TYPE_LONGHAND, - initial_values: [ "1", "2.8", "1.000", "300%"], - other_values: [ "0", "0.3", "-7.3", "-100%", "50%"], + initial_values: [ "1", "2.8", "1.000", "300%" ], + other_values: [ "0", "0.3", "-7.3", "-100%", "50%" ], invalid_values: [] }, "image-rendering": { |