summaryrefslogtreecommitdiffstats
path: root/layout/style/test/property_database.js
diff options
context:
space:
mode:
authorathenian200 <athenian200@outlook.com>2020-09-17 16:01:38 -0500
committerMoonchild <moonchild@palemoon.org>2020-09-21 11:05:30 +0000
commitf2866a5420b4645d888fc50b22f7cbdd8a178042 (patch)
tree0fcf939a8a8bb1da4c57ba154cbe543b5b4dfb63 /layout/style/test/property_database.js
parentb862145e9c7f0802ea5fa7e02c003744dbca9ec2 (diff)
downloadUXP-f2866a5420b4645d888fc50b22f7cbdd8a178042.tar
UXP-f2866a5420b4645d888fc50b22f7cbdd8a178042.tar.gz
UXP-f2866a5420b4645d888fc50b22f7cbdd8a178042.tar.lz
UXP-f2866a5420b4645d888fc50b22f7cbdd8a178042.tar.xz
UXP-f2866a5420b4645d888fc50b22f7cbdd8a178042.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.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/layout/style/test/property_database.js b/layout/style/test/property_database.js
index 2fc50a539..bc4383630 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": {