servo/components/style
bors-servo f3bacf84f4 Auto merge of #15539 - AdmiralCoco:reject_outofrange_transition_values, r=emilio
Add rejection of out-of-range values for single-timing-functions

<!-- Please describe your changes on the following line: -->
This PR fixes #15344, checking for the `cubic-bezier p1x/p2x` and `steps` first value after parsing.

There are unit tests that check for parsing of invalid values - I was not sure if there was a more suitable place, so I created a file (name subject to change).

Q: I found this [test suite](https://github.com/servo/servo/blob/master/tests/unit/style/properties/serialization.rs#L592), and noticed that the `p2x` value is out of range, but the test does not fail - is this because there is no check when calling the function itself?

Thanks!

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #15344

<!-- Either: -->
- [X] There are tests for these changes

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- 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/15539)
<!-- Reviewable:end -->
2017-02-14 19:25:49 -08:00
..
binding_tools Avoid write atoms files when not necessary 2016-12-28 17:49:34 +11:00
gecko style: Unbox a bunch of color properties. 2017-02-14 20:18:31 +01:00
gecko_bindings Bug 1338087 - Drop Servo_RestyleWithAddedDeclaration. r=manishearth 2017-02-13 12:54:38 +08:00
gecko_string_cache style: Document gecko_string_cache. 2017-01-02 12:58:07 +01:00
properties Auto merge of #15539 - AdmiralCoco:reject_outofrange_transition_values, r=emilio 2017-02-14 19:25:49 -08:00
rule_tree Stop returning rule nodes from match_element and overhaul style calculation logic. 2017-02-10 10:34:28 -08:00
servo Update selectors to 0.17 2017-02-07 20:33:35 -08:00
values Auto merge of #15518 - emilio:color, r=SimonSapin 2017-02-14 11:43:16 -08:00
animation.rs Convert animation-iteration-count longhand into vector_longhand 2017-01-08 17:19:09 +03:00
attr.rs style: Unbox a bunch of color properties. 2017-02-14 20:18:31 +01:00
bezier.rs More docs in style. 2017-01-02 10:40:20 +01:00
bloom.rs Bug 1336646 - Use the bloom filter for manual style resolves and pass a mutable StyleContext into match_element. r=emilio 2017-02-08 17:09:35 -08:00
build.rs Bindgenup. 2017-01-25 10:42:44 +01:00
build_gecko.rs Bug 1339033 fixup - Add forgotten semicolons after 7afc681ac8. 2017-02-13 17:59:12 +00:00
cache.rs style: Document and remove dead code from cache.rs 2016-12-31 04:53:37 +01:00
Cargo.toml Auto merge of #15549 - mbrubeck:always-be-updating, r=jdm 2017-02-14 13:17:24 -08:00
cascade_info.rs style: Document cascade_info. 2016-12-31 23:24:19 +01:00
context.rs Bug 1336646 - Apply selector flags during traversal. r=emilio 2017-02-08 19:21:05 -08:00
custom_properties.rs Box DeclaredValue::WithVariables 2017-02-09 11:10:10 +01:00
data.rs Stop returning rule nodes from match_element and overhaul style calculation logic. 2017-02-10 10:34:28 -08:00
dom.rs Clean up and simplify the accumulation of restyle damage. 2017-02-10 10:34:28 -08:00
element_state.rs Change order of element state bits 2017-01-06 10:04:49 +11:00
error_reporting.rs style: Document the error_reporting module. 2016-12-31 23:24:19 +01:00
font_face.rs Rename CommaSeparated to OneOrMoreCommaSeparated, reflecting its behavior. 2017-02-03 13:15:53 +01:00
font_metrics.rs style: Document the font_metrics module. 2016-12-31 23:24:19 +01:00
keyframes.rs Assert if there is an important declaration while collecting animated properties in keyframes. 2017-02-01 07:33:37 +09:00
lib.rs changed quickersort with pdqsort 2017-01-27 18:42:22 +00:00
logical_geometry.rs Convert text-orientation to a Gecko-only property 2017-01-27 21:12:38 -08:00
matching.rs Clean up and simplify the accumulation of restyle damage. 2017-02-10 10:34:28 -08:00
media_queries.rs Bug 1331213: Bootstrap a Gecko-side Device, and track it's dirtiness manually in the per-doc data. r=heycam 2017-01-17 14:05:23 +01:00
owning_handle.rs style: Document the owning_handle module. 2017-01-02 12:57:53 +01:00
parallel.rs Bug 1336646 - Move opts check for statistics into should_dump. r=emilio 2017-02-08 17:09:41 -08:00
parser.rs Rename CommaSeparated to OneOrMoreCommaSeparated, reflecting its behavior. 2017-02-03 13:15:53 +01:00
README.md
restyle_hints.rs Do RestyleHint assertions at runtime so they use build-time bindgen. 2017-02-14 10:38:59 +08:00
scoped_tls.rs Bug 1331856 - Add style performance statistics to Servo. r=emilio 2017-01-19 15:05:19 -08:00
selector_parser.rs style: Document the restyle hints code, and make it operate on TElement. 2017-01-02 12:57:52 +01:00
sequential.rs style: Expose the traversal kind to the style system. 2017-01-24 08:41:29 +01:00
sink.rs style: document the sink module. 2017-01-02 12:57:49 +01:00
str.rs Auto merge of #14796 - jlevesy:jl-match-to-if-let, r=Wafflespeanut 2016-12-31 21:28:41 -08:00
stylesheets.rs Support @supports (fixes #14786) 2017-01-07 23:17:50 -08:00
stylist.rs Allow the ComputedValues in ComputedStyle to be null. 2017-02-10 10:34:27 -08:00
supports.rs Fix too many parens in @supports serialization. 2017-01-09 19:35:00 +01:00
thread_state.rs Tidy up rust code with regard to new rule (no = in beginning of line) 2017-01-06 20:57:16 +01:00
timer.rs style: Document the timer module. 2016-12-31 12:17:04 +01:00
traversal.rs Stop returning rule nodes from match_element and overhaul style calculation logic. 2017-02-10 10:34:28 -08:00
viewport.rs Change LengthOrPercentageOrAuto to make use of NoCalcLength 2017-01-29 02:30:34 +05:30

servo-style

Style system for Servo, using rust-cssparser for parsing.