summaryrefslogtreecommitdiff
path: root/layout/style/nsCSSPropList.h
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-09-18 10:23:00 +0000
committerGitHub <noreply@github.com>2020-09-18 10:23:00 +0000
commitc1988898f2c7d949d3644d003b9bb89fc8c87720 (patch)
treedfbe0ac936feee229d47cfd655c82d61266aa1ed /layout/style/nsCSSPropList.h
parent6be15b96ae4a9f0a73aaea794602201ddf0c4242 (diff)
parentb5c9f8e24e6ce368532f893fbd9a517b79096839 (diff)
downloaduxp-c1988898f2c7d949d3644d003b9bb89fc8c87720.tar.gz
Merge pull request #1654 from athenian200/opacity_percentage
Implement percentage for CSS opacity keywords
Diffstat (limited to 'layout/style/nsCSSPropList.h')
-rw-r--r--layout/style/nsCSSPropList.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/layout/style/nsCSSPropList.h b/layout/style/nsCSSPropList.h
index f62aa38272..8900192454 100644
--- a/layout/style/nsCSSPropList.h
+++ b/layout/style/nsCSSPropList.h
@@ -1703,7 +1703,7 @@ CSS_PROP_SVG(
FillOpacity,
CSS_PROPERTY_PARSE_VALUE,
"",
- VARIANT_HN | VARIANT_OPENTYPE_SVG_KEYWORD,
+ VARIANT_INHERIT | VARIANT_OPACITY | VARIANT_OPENTYPE_SVG_KEYWORD,
kContextOpacityKTable,
offsetof(nsStyleSVG, mFillOpacity),
eStyleAnimType_float)
@@ -1841,7 +1841,7 @@ CSS_PROP_SVGRESET(
FloodOpacity,
CSS_PROPERTY_PARSE_VALUE,
"",
- VARIANT_HN,
+ VARIANT_INHERIT | VARIANT_OPACITY,
nullptr,
offsetof(nsStyleSVGReset, mFloodOpacity),
eStyleAnimType_float)
@@ -3070,7 +3070,7 @@ CSS_PROP_EFFECTS(
CSS_PROPERTY_CAN_ANIMATE_ON_COMPOSITOR |
CSS_PROPERTY_CREATES_STACKING_CONTEXT,
"",
- VARIANT_HN,
+ VARIANT_INHERIT | VARIANT_OPACITY,
nullptr,
offsetof(nsStyleEffects, mOpacity),
eStyleAnimType_float)
@@ -3761,7 +3761,7 @@ CSS_PROP_SVGRESET(
StopOpacity,
CSS_PROPERTY_PARSE_VALUE,
"",
- VARIANT_HN,
+ VARIANT_INHERIT | VARIANT_OPACITY,
nullptr,
offsetof(nsStyleSVGReset, mStopOpacity),
eStyleAnimType_float)
@@ -3836,7 +3836,7 @@ CSS_PROP_SVG(
StrokeOpacity,
CSS_PROPERTY_PARSE_VALUE,
"",
- VARIANT_HN | VARIANT_OPENTYPE_SVG_KEYWORD,
+ VARIANT_INHERIT | VARIANT_OPACITY | VARIANT_OPENTYPE_SVG_KEYWORD,
kContextOpacityKTable,
offsetof(nsStyleSVG, mStrokeOpacity),
eStyleAnimType_float)