Auto merge of #17705 - emilio:neg-padding, r=bholley

style: Avoid parsing negative padding in the padding shorthand.

Fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1380492

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/17705)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-07-12 20:11:45 -07:00 committed by GitHub
commit 28abeab5a5
3 changed files with 1 additions and 7 deletions

View file

@ -4,6 +4,6 @@
<%namespace name="helpers" file="/helpers.mako.rs" />
${helpers.four_sides_shorthand("padding", "padding-%s", "specified::LengthOrPercentage::parse",
${helpers.four_sides_shorthand("padding", "padding-%s", "specified::LengthOrPercentage::parse_non_negative",
spec="https://drafts.csswg.org/css-box-3/#propdef-padding",
allow_quirks=True)}

View file

@ -1,3 +0,0 @@
[c5510-padn-002.htm]
type: reftest
expected: FAIL

View file

@ -1,3 +0,0 @@
[padding-009.htm]
type: reftest
expected: FAIL