Bug 1384221 - stylo: error reporting lies about property names in some cases. r=jdm
authorFernando Jimenez Moreno <ferjmoreno@gmail.com>
Mon, 11 Sep 2017 02:11:00 -0400
changeset 665365 d7ccda988869be632fb6b3345d3efba111db7f7d
parent 665364 9c24bd90faa13cb7cccaa5af5aed8ddf450a98fe
child 665366 3b514f20525296a9b6a623ba680fb027bc9e6cae
push id80026
push userbmo:ralin@mozilla.com
push dateFri, 15 Sep 2017 10:04:21 +0000
reviewersjdm
bugs1384221
milestone57.0a1
Bug 1384221 - stylo: error reporting lies about property names in some cases. r=jdm
layout/style/test/test_css_parse_error_smoketest.html
--- a/layout/style/test/test_css_parse_error_smoketest.html
+++ b/layout/style/test/test_css_parse_error_smoketest.html
@@ -32,16 +32,18 @@
     { css: "x| {}", error: "Unknown namespace prefix ‘x’.  Ruleset ignored due to bad selector." },
     { css: "a> {}", error: "Dangling combinator.  Ruleset ignored due to bad selector." },
     { css: "~ {}", error: "Selector expected.  Ruleset ignored due to bad selector." },
     { css: "| {}", error: "Expected element name or ‘*’ but found ‘ ’.  Ruleset ignored due to bad selector." },
     { css: ". {}", error: "Expected identifier for class selector but found ‘ ’.  Ruleset ignored due to bad selector." },
 
     { css: ":not() {}", error: "Missing argument in negation pseudo-class ‘)’.  Ruleset ignored due to bad selector." },
 
+    { css: "* { -webkit-text-size-adjust: 100% }", error: "Error in parsing value for ‘-webkit-text-size-adjust’.  Declaration dropped." },
+
     { css: "@media (totally-unknown-feature) {}", error: "Expected media feature name but found ‘totally-unknown-feature’." },
     { css: "@media \"foo\" {}", error: "Expected identifier in media list but found ‘\"foo\"’." },
     { css: "@media (min-width) {}", error: "Media features with min- or max- must have a value." },
     { css: "@media (device-height: -1px) {}", error: "Found invalid value for media feature." },
     { css: "@media (min-width: -1px) {}", error: "Found invalid value for media feature." },
     { css: "@media (min-resolution: 2) {}", error: "Found invalid value for media feature." },
     { css: "@media (min-monochrome: 1.1) {}", error: "Found invalid value for media feature." },
     { css: "@media (min-aspect-ratio: 1) {}", error: "Found invalid value for media feature." },