mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 01:35:35 +00:00
Bug 1357295 - Add PARSING_MODE_ALLOW_ALL_NUMERIC_VALUES to force to parse negative values. r=emilio
As per SVG spec [1], we should also parse negative color components values for SMIL, but currently Gecko does not support it either. [1] https://www.w3.org/TR/SVG/implnote.html#RangeClamping MozReview-Commit-ID: FH80zN3jyKh --HG-- extra : rebase_source : c9b435222ee7e84cb6e84064a62b2b866e75b6eb
This commit is contained in:
parent
55f24d5f91
commit
6ac20e3acf
@ -83,6 +83,9 @@ enum class ParsingMode : uint8_t {
|
||||
// is assumed to be in user units (px).
|
||||
// https://www.w3.org/TR/SVG/coords.html#Units
|
||||
AllowUnitlessLength = 1 << 0,
|
||||
// In SVG, out-of-range values are not treated as an error in parsing.
|
||||
// https://www.w3.org/TR/SVG/implnote.html#RangeClamping
|
||||
AllowAllNumericValues = 1 << 1,
|
||||
};
|
||||
|
||||
MOZ_MAKE_ENUM_CLASS_BITWISE_OPERATORS(ParsingMode)
|
||||
|
Loading…
Reference in New Issue
Block a user