Anthony Ramine
735e093de7
Implement #[compute(clone)] for #[derive(ToComputedValue)]
2017-08-28 10:39:53 +02:00
Anthony Ramine
efc852f6e3
Improve handling of trait bounds when deriving fmap-like traits
2017-08-28 10:39:50 +02:00
Fausto Núñez Alberro
14c5a1b8d3
Introduce ComputedUrl
...
Add web platform tests for computed URL styles
Mark url with no original or resolved unreachable
Update the WPT manifest for new url tests
2017-08-09 13:55:39 +02:00
Fernando Jiménez Moreno
6ae4bf6ee8
Implement serialization of linear-gradient the same ways as in Gecko
2017-07-13 12:20:30 +02:00
Anthony Ramine
907d629ca4
Rename ImageRect to MozImageRect
2017-07-12 11:45:15 +02:00
Nazım Can Altınova
d589645ee9
stylo: Implement -moz-prefixed radial gradients
2017-06-30 17:54:01 -07:00
Nazım Can Altınova
3e42684d3c
stylo: Implement -moz-prefixed linear gradients
2017-06-30 17:53:01 -07:00
Shing Lyu
f6c652dd9c
Convert -webkit-linear-gradient coordinate system for Stylo
2017-06-20 16:46:21 +08:00
Anthony Ramine
8eec24cd46
Revert "Derive ToCss for MozImageRect"
...
This reverts commit fe19c3810c
.
2017-06-13 18:00:29 +02:00
Anthony Ramine
fe19c3810c
Derive ToCss for MozImageRect
2017-06-13 11:29:25 +02:00
Xidorn Quan
bf77f81ed6
Create RGBAColor for colors compute to RGBA.
2017-06-08 10:42:26 +10:00
Anthony Ramine
73f77e0a53
Rename LayerImage to ImageLayer and make it a type alias
2017-05-15 15:36:21 +02:00
Anthony Ramine
abef5da9d8
Refactor Gradient
...
In a similar way to Position, now specified and computed gradients share
a common Gradient type defined in style::values::generics::image.
This allows us to reuse most code for many style traits like ToCss,
HasViewportPercentage and ToComputedValue.
The test changes are the fallout of the disappearance of AngleOrCorner::None,
which align our code to the spec for serialisation, where components that can
be omitted should be omitted.
2017-05-15 15:36:15 +02:00
Anthony Ramine
f2aaba685b
Kill side keywords from style::values::specified::image
2017-05-15 15:35:31 +02:00
Anthony Ramine
1c54758ad6
Introduce style::values::generics::image
2017-05-15 15:35:26 +02:00
cku
3c3e7f63ee
Stylo: Implement {specified|computed}::LayerImage.
2017-05-03 20:51:33 +08:00
Pyfisch
803bc0395c
Fix gradient math and positioning. Formatting.
...
Start adding repeating gradients.
2017-04-27 22:07:31 +02:00
Pyfisch
f4bad2d920
Partially implement radial gradients.
...
Missing: repeating radial gradients and keyword sizes.
2017-04-27 22:07:31 +02:00
Anthony Ramine
ae82cdab34
Parse interpolation hints ( fixes #15166 )
2017-04-27 15:04:36 +02:00
Anthony Ramine
133b599a6f
Implement webkit-prefixed linear gradients
...
This is half of https://github.com/servo/servo/issues/15441 .
2017-04-13 18:57:48 +02:00
Nazım Can Altınova
9618363e08
stylo: Add -moz-element support
2017-04-09 21:25:48 +03:00
Emilio Cobos Álvarez
fc72f096a0
style: Properly track whether <angle> or <time> values came from calc() expressions.
2017-03-27 12:42:22 +02:00
Nazım Can Altınova
494238ab29
Add support for -moz-image-rect
2017-03-25 21:58:36 +03:00
Matt Brubeck
16e318d055
Add support for non-standard -moz color keyword values.
...
Closes #15928
2017-03-14 00:49:08 +01:00
Manish Goregaokar
f59557d2f2
Box CalcLengthOrPercentage to reduce inline size of PropertyDeclaration(s)
2017-01-17 08:09:54 -08:00
Emilio Cobos Álvarez
f37aa12927
style: Prevent more missing docs in the values module.
2016-12-31 12:17:02 +01:00
Nick Price
23d4f04ce5
Default is top-to-bottom if unset, not bottom-to-top
2016-12-28 10:17:00 -05:00
Nick Price
5d56946bc2
Maintain Corner type, add None type to AngleOrCorner
2016-12-16 17:49:15 -05:00
Emilio Cobos Álvarez
5f2e7af864
style: Centralize specified url value handling, and refcount urls.
2016-11-10 13:15:21 +01:00
Ravi Shankar
6061985898
Prefer Servo-specific ToCss for all types
2016-11-07 09:14:22 +05:30
Nazım Can Altınova
26c98edd68
Implement parsing of all gradients
2016-10-09 22:53:15 +03:00