bors-servo
72b76458b7
Auto merge of #15606 - mbrubeck:align-items, r=Manishearth
...
stylo: Implement align-items and justify-items
Stylo-only patch to match Gecko property support. Part of #15001 . r? @Manishearth
<!-- 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/15606 )
<!-- Reviewable:end -->
2017-02-18 22:26:06 -08:00
Manish Goregaokar
ff08de8ad1
stylo: Support stroke-dasharray and stroke-dashoffset
...
MozReview-Commit-ID: 4QKKzJ1DVYP
2017-02-18 02:43:36 -08:00
Manish Goregaokar
51b03fbc7d
stylo: Add Gecko bindings for <paint>, use for stroke/fill
...
MozReview-Commit-ID: 4QKKzJ1DVYP
2017-02-18 02:42:57 -08:00
Manish Goregaokar
fabc1b875b
stylo: Add SVGPaint type for <paint>
...
MozReview-Commit-ID: 4QKKzJ1DVYP
2017-02-18 02:42:55 -08:00
Matt Brubeck
0a0dd11f50
stylo: Implement align-items and justify-items
2017-02-16 15:52:34 -08:00
Matt Brubeck
4de480ec9b
style: Implement 'align-self' and 'justify-self'
2017-02-16 13:35:47 -08:00
Matt Brubeck
c70167d17c
Stylo: Implement align-content and justify-content
2017-02-14 08:58:55 -08:00
Manish Goregaokar
6b0d3902de
Factor out ClipRect type into values; use Either for clip
...
MozReview-Commit-ID: C3R1erJdiID
2017-02-09 15:09:35 -08:00
Manish Goregaokar
a095565a8c
stylo: Implement scroll-snap-destination
...
MozReview-Commit-ID: 6mr4ktfeEGT
2017-02-09 10:54:19 -08:00
Ravi Shankar
4035bbd738
Split the Length type (introduce NoCalcLength)
2017-01-28 23:33:00 +05:30
Manish Goregaokar
f59557d2f2
Box CalcLengthOrPercentage to reduce inline size of PropertyDeclaration(s)
2017-01-17 08:09:54 -08:00
Boris Zbarsky
369fdddcd9
Bug 1298588 part 13. Make sure Device has a ComputedValues for stylo. r=bholley
2017-01-04 23:13:52 -05:00
Emilio Cobos Álvarez
f37aa12927
style: Prevent more missing docs in the values module.
2016-12-31 12:17:02 +01:00
Emilio Cobos Álvarez
277ef70d39
style: Consistently indent stuff, add a bit of documentation driving by.
2016-12-31 12:16:57 +01:00
bors-servo
9d2b98e6f8
Auto merge of #14598 - DominoTree:master, r=canaltinova
...
Fix linear gradient's specified form #13892
<!-- Please describe your changes on the following line: -->
WIP for #13892
---
<!-- 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 #13892 (github issue number if applicable).
<!-- Either: -->
- [x] There are tests for these changes OR
- [ ] These changes do not require tests because _____
<!-- 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/14598 )
<!-- Reviewable:end -->
2016-12-16 15:11:29 -08:00
Nick Price
5d56946bc2
Maintain Corner type, add None type to AngleOrCorner
2016-12-16 17:49:15 -05:00
Ravi Shankar
6d9aed9ac3
Add gecko glue for grid-{row,column}-{start,end}
2016-12-16 13:07:08 +05:30
Shing Lyu
64ecb33e17
Reuse box-shadow code for drop-shadow filter
2016-12-13 14:47:02 +08:00
Emilio Cobos Álvarez
6c3458767b
style: Refactor and add infrastructure for font metrics in style.
...
This commit itself only moves things around and adds an extra parameter to the
`apply_declarations` function to eventually handle #14079 correctly.
Probably needs a more granular API to query fonts, á la nsFontMetrics, but
that's trivial to do once this is landed.
Then we should make the font provider mandatory, and implement the missing stylo
bits.
2016-11-13 11:54:10 +01:00
Emilio Cobos Álvarez
5f2e7af864
style: Centralize specified url value handling, and refcount urls.
2016-11-10 13:15:21 +01:00
Ravi Shankar
c4fc49c559
Make use of Either<A, B> for LengthOrNone
2016-11-09 13:04:26 +05:30
Ravi Shankar
6061985898
Prefer Servo-specific ToCss for all types
2016-11-07 09:14:22 +05:30
Nazım Can Altınova
7720fe4d9c
Move LengthOrNumber to style/values and implement GeckoStyleCoordConvertible
2016-11-06 20:08:31 +03:00
Yuki Izumi
f33f5605ba
Refactor style lengths per #13584
2016-11-06 14:11:37 +11:00
Cameron McCormack
75e97c02dc
Factor out a UrlOrNone value type and make -moz-binding use it.
...
MozReview-Commit-ID: L57QEf40e2m
2016-10-16 11:32:57 +08:00
Nazım Can Altınova
26c98edd68
Implement parsing of all gradients
2016-10-09 22:53:15 +03:00
Manish Goregaokar
d81c6af59c
Add from_computed_value() function for converting computed values to specified
2016-09-23 09:44:32 +05:30
Manish Goregaokar
7138ad7d7e
Bug 1300731 - stylo: Implement mask-image; r?heycam
2016-09-10 15:27:45 +08:00
UK992
93a103ba73
Reorder use
statements
2016-09-09 04:55:19 +02:00
Emilio Cobos Álvarez
d02c5b0281
style: Don't incorrectly clamp values in calc that might not be only lengths.
...
Expressions with percentages may be negative or positive at computed value time.
So, we can only clamp lengths at computed value time, which is what the other
browsers do.
2016-09-01 23:39:40 -07:00
Emilio Cobos Álvarez
2617d15ed6
style: Properly track whether negative values of calc() are allowed
...
In order to clamp them at computed value time.
2016-08-30 19:17:16 -07:00
Emilio Cobos Álvarez
be7a44315d
style: Allow calc in media queries.
2016-08-30 13:48:55 -07:00
Ravi Shankar
a04028eede
Prefer length and percentage for word spacing
2016-08-09 17:53:40 +05:30
Manish Goregaokar
44e33bcdc5
Move Position into its own values module
2016-08-02 15:57:23 +05:30
Manish Goregaokar
2580c1dc6e
Add InsetRect, move BorderRadius to basic_shape.rs
2016-08-02 15:57:20 +05:30
Manish Goregaokar
149246e96a
style: Split values.rs into specified/computed module files
2016-07-29 18:43:42 +05:30