Bug 1367977 - add serialization tests for SVG unitless length values. r=heycam

Add small factor numbers as valid values for SVG unitless length values,
so we could ensure that a unitless length will not be rounded accidentally
during computation and serialization.

MozReview-Commit-ID: 8H3RNYsEXVx

--HG--
extra : rebase_source : 0ff615fb2557fc1923dde9281044d362b52c0430
This commit is contained in:
Jeremy Chen 2017-05-26 15:09:20 +08:00
Родитель b470970c3c
Коммит 539b40507b
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -4369,7 +4369,7 @@ var gCSSProperties = {
inherited: true,
type: CSS_TYPE_LONGHAND,
initial_values: [ "none", "context-value" ],
other_values: [ "5px,3px,2px", "5px 3px 2px", " 5px ,3px\t, 2px ", "1px", "5%", "3em" ],
other_values: [ "5px,3px,2px", "5px 3px 2px", " 5px ,3px\t, 2px ", "1px", "5%", "3em", "0.0002" ],
invalid_values: [ "-5px,3px,2px", "5px,3px,-2px" ]
},
"stroke-dashoffset": {
@ -4377,7 +4377,7 @@ var gCSSProperties = {
inherited: true,
type: CSS_TYPE_LONGHAND,
initial_values: [ "0", "-0px", "0em", "context-value" ],
other_values: [ "3px", "3%", "1em" ],
other_values: [ "3px", "3%", "1em", "0.0002" ],
invalid_values: []
},
"stroke-linecap": {
@ -4417,7 +4417,7 @@ var gCSSProperties = {
inherited: true,
type: CSS_TYPE_LONGHAND,
initial_values: [ "1px", "context-value" ],
other_values: [ "0", "0px", "-0em", "17px", "0.2em" ],
other_values: [ "0", "0px", "-0em", "17px", "0.2em", "0.0002" ],
invalid_values: [ "-0.1px", "-3px" ]
},
"text-anchor": {