servo/components/style
Emilio Cobos Álvarez 94686df11b style: Use rust lengths for the SVG lengths.
As it turns out we need this to avoid losing precision both during painting and
during serialization.

This patch also changes to serialize `context-value` if it's the computed value.

I could keep the previous behavior, but it makes no sense to serialize the
initial value. We're the only ones to support this value anyway, and I couldn't
find a definition or spec for this.

Also update tests and expectations for:

 * New unexpected passes.
 * Always serializing the unit in getComputedStyle.
 * Calc and interpolation support.

Chrome also always serializes the unit in getComputedStyle, so I'm pretty sure
this is compatible with them. Chrome is inconsistent and keeps numbers in
specified style, but that's inconsistent with itself and with other quirky
lengths, so I updated the tests instead.

Differential Revision: https://phabricator.services.mozilla.com/D21819
2019-03-13 15:08:17 +01:00
..
counter_style Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
gecko style: Add a Zero trait that doesn't require Add, and use it in place of num_traits and IsZeroLength. 2019-03-13 15:08:14 +01:00
gecko_bindings style: Add a Zero trait that doesn't require Add, and use it in place of num_traits and IsZeroLength. 2019-03-13 15:08:14 +01:00
gecko_string_cache style: Document a few more macros. 2019-01-13 21:59:25 +01:00
invalidation style: Remove unnecessary mem::transmute in MediaListKey. 2019-01-13 21:58:28 +01:00
media_queries style: Add a Zero trait that doesn't require Add, and use it in place of num_traits and IsZeroLength. 2019-03-13 15:08:14 +01:00
properties style: Use rust lengths for the SVG lengths. 2019-03-13 15:08:17 +01:00
rule_tree style: Set the important rule change flag when a newly important rule is inserted. 2018-12-02 14:17:20 -05:00
servo Rustfmt has changed its default style :/ 2018-12-28 13:17:47 +01:00
sharing style: Don't share styles when an element has animations applied to it. 2019-02-23 21:02:53 -08:00
stylesheets style: Remove a couple trivial dependencies on nsPresContext. 2019-02-23 21:04:19 -08:00
use_counters Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
values style: Cleanup and fix interpolation of SVG lengths. 2019-03-13 15:08:15 +01:00
animation.rs style: Minor build fixup after the Servo crossbeam_channel update. 2018-12-16 13:35:08 +01:00
applicable_declarations.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
attr.rs style: Rename LengthOrPercentage to LengthPercentage. 2019-01-08 12:00:48 +01:00
author_styles.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
bezier.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
bloom.rs Rustfmt has changed its default style :/ 2018-12-28 13:17:47 +01:00
build.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
build_gecko.rs style: Update the Rust target version for bindgen. 2019-01-07 00:32:50 +01:00
Cargo.toml style: Add a dependency on derive_more. 2019-01-29 02:39:05 +01:00
cbindgen.toml style: Make word-break: break-word behave like word-break: normal; overflow-wrap: anywhere. 2019-03-13 15:08:14 +01:00
context.rs style: Derive more. 2019-01-29 02:39:13 +01:00
custom_properties.rs Remove OrderedMap in favor of IndexMap 2019-01-10 12:57:09 +05:30
data.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
dom.rs Rustfmt has changed its default style :/ 2018-12-28 13:17:47 +01:00
dom_apis.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
driver.rs style: Derive more. 2019-01-29 02:39:13 +01:00
element_state.rs Rename nsIDocument to mozilla::dom::Document. 2019-01-07 00:32:51 +01:00
encoding_support.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
error_reporting.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
font_face.rs Rustfmt has changed its default style :/ 2018-12-28 13:17:47 +01:00
font_metrics.rs Rustfmt has changed its default style :/ 2018-12-28 13:17:47 +01:00
global_style_data.rs style: Make Servo use a single thread-pool for layout-related tasks per-process. 2018-12-23 13:00:56 +01:00
hash.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
lib.rs style: Add a Zero trait that doesn't require Add, and use it in place of num_traits and IsZeroLength. 2019-03-13 15:08:14 +01:00
logical_geometry.rs Fix servo build and rustfmt recent changes. 2019-01-20 16:31:01 +01:00
macros.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
matching.rs Rustfmt has changed its default style :/ 2018-12-28 13:17:47 +01:00
parallel.rs Rustfmt has changed its default style :/ 2018-12-28 13:17:47 +01:00
parser.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
README.md
rule_cache.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
rule_collector.rs style: Rustfmt recent changes. 2019-01-07 00:32:54 +01:00
scoped_tls.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
selector_map.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
selector_parser.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
shared_lock.rs Rustfmt has changed its default style :/ 2018-12-28 13:17:47 +01:00
str.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
style_adjuster.rs Rustfmt has changed its default style :/ 2018-12-28 13:17:47 +01:00
style_resolver.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
stylesheet_set.rs style: Remove ServoStyleSet::PrependStyleSheet. 2019-01-13 21:59:07 +01:00
stylist.rs style: Remove ServoStyleSet::PrependStyleSheet. 2019-01-13 21:59:07 +01:00
thread_state.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
timer.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
traversal.rs Rustfmt has changed its default style :/ 2018-12-28 13:17:47 +01:00
traversal_flags.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00

servo-style

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