Emilio Cobos Álvarez
8c004c0858
style: Reformat recent changes.
2019-04-12 12:20:14 +02:00
Hiroyuki Ikezoe
21481e315e
style: Switch to the new scroll-snap-type syntax for the old scroll snap implementation and drop the scroll-snap-type-{x,y} longhands.
...
Now scroll-snap-type is a longhand property.
Differential Revision: https://phabricator.services.mozilla.com/D21622
2019-04-12 12:20:12 +02:00
Hiroyuki Ikezoe
2f457ed144
style: Rename ScrollSnapType to ScrollSnapStrictness.
...
The scroll snap strictness is defined in the new spec [1], and the structure
is the exactly same as the old scroll snap type structure.
[1] https://drafts.csswg.org/css-scroll-snap-1/#snap-strictness
Differential Revision: https://phabricator.services.mozilla.com/D21621
2019-04-12 12:20:12 +02:00
Emilio Cobos Álvarez
a47dcb5707
style: Derive ToResolvedValue.
...
Differential Revision: https://phabricator.services.mozilla.com/D26783
2019-04-12 12:20:09 +02:00
Hiroyuki Ikezoe
22e12a0f52
style: Implement scroll-snap-align parser and serializer.
...
https://drafts.csswg.org/css-scroll-snap-1/#scroll-snap-align
Differential Revision: https://phabricator.services.mozilla.com/D20205
2019-02-23 21:03:55 -08:00
Emilio Cobos Álvarez
4d24dd2847
style: Rustfmt recent changes.
2019-01-29 02:53:55 +01:00
Emilio Cobos Álvarez
76ea22d50c
style: Simplify some conversion code used for mapped attributes.
...
These days for the types we share computed value representation we don't really
need any special code.
Differential Revision: https://phabricator.services.mozilla.com/D17763
2019-01-29 02:39:26 +01:00
Emilio Cobos Álvarez
2e6d34cad9
style: Rustfmt recent changes.
2019-01-13 21:59:35 +01:00
Ryan Hunt
c04a4140a7
style: Add 'overflow-anchor' CSS property.
...
https://drafts.csswg.org/css-scroll-anchoring/#exclusion-api
Differential Revision: https://phabricator.services.mozilla.com/D13265
2019-01-13 21:58:18 +01:00
Emilio Cobos Álvarez
daf1f02feb
style: Rename LengthOrPercentage to LengthPercentage.
...
It does not represent `<length> | <percentage>`, but `<length-percentage>`, so
`LengthOrPercentage` is not the right name.
This patch is totally autogenerated using:
rg 'LengthOrPercentage' servo | cut -d : -f 1 | sort | uniq > files
for file in $(cat files); do sed -i "s#LengthOrPercentage#LengthPercentage#g" $file; done
Differential Revision: https://phabricator.services.mozilla.com/D15812
2019-01-08 12:00:48 +01:00
Emilio Cobos Álvarez
901c055519
style: Move overflow to use cbindgen.
...
It's one of the most annoying / hacky mako bits we have.
Differential Revision: https://phabricator.services.mozilla.com/D14084
2018-12-16 13:35:05 +01:00
Emilio Cobos Álvarez
626172d64c
style: Use cbindgen for a couple more CSS properties.
...
Differential Revision: https://phabricator.services.mozilla.com/D13886
2018-12-16 13:35:04 +01:00
Jan Andre Ikenmeyer
1d6fe65401
Update MPL license to https (part 4)
2018-11-19 14:47:27 +01:00
Emilio Cobos Álvarez
06fe0a1fc0
style: Fix formatting.
2018-11-17 09:56:05 +01:00
Emilio Cobos Álvarez
a5f0eb9205
style: Also move page-break-inside outside of mako.
...
Differential Revision: https://phabricator.services.mozilla.com/D11876
2018-11-17 09:56:04 +01:00
Emilio Cobos Álvarez
d9de68ad6a
style: Move the page-break-{before,after} properties to not use mako.
...
And respect the computed value of `left` / `right` / etc.
Differential Revision: https://phabricator.services.mozilla.com/D11872
2018-11-17 09:56:03 +01:00
Simon Sapin
a15d33a10e
cargo fix --edition
2018-11-10 17:47:28 +01:00
Pyfisch
9e92eb205a
Reorder imports
2018-11-06 22:35:07 +01:00
chansuke
8dab4d659a
Format style component.
2018-09-09 16:24:45 +02:00
Xidorn Quan
c77ecd6984
style: Implement flow-relative values for resize property.
...
Differential Revision: https://phabricator.services.mozilla.com/D2908
2018-08-18 17:47:51 +02:00
Emilio Cobos Álvarez
0cab212052
style: Autogenerate StyleAppearance.
...
This builds on bug 1428676 and introduces StyleAppearance, which replaces the
NS_THEME_* constants.
Really sorry for the size of the patch.
There's a non-trivial change in the gtk theme, which I submitted separately as
bug 1478385.
Differential Revision: https://phabricator.services.mozilla.com/D2361
2018-08-08 01:35:08 +02:00
Philipp Klein
85af4145c3
style: Move clear
CSS property outside mako
...
closes #21155
2018-07-10 09:18:33 +02:00
Philipp Klein
c7871811c8
style: Move float
CSS property outside mako
...
closes #21130
2018-07-09 12:47:07 +02:00
Emilio Cobos Álvarez
90ef5607e4
style: Move TransitionProperty where it belongs.
...
Bug: 1419695
Reviewed-by: xidorn
MozReview-Commit-ID: 9PN6VfbDbLA
2018-06-12 12:15:05 -07:00
Bobby Holley
c99bcdd4b8
Run rustfmt on selectors, servo_arc, and style.
...
This was generated with:
./mach cargo fmt --package selectors &&
./mach cargo fmt --package servo_arc &&
./mach cargo fmt --package style
Using rustfmt 0.4.1-nightly (a4462d1 2018-03-26)
2018-04-10 17:35:15 -07:00
Anthony Ramine
260e05320c
Replace LengthOrNone by a specific type for the perspective property
...
This was its only use, and it was bugged: AFAIK this didn't properly
clamp animated values below 0.
2018-02-26 22:32:06 +01:00
lizhixun
4c23f09934
style: Move contain outside of mako
2018-01-03 23:13:56 -08:00
CYBAI
a764d9065e
style: Move display outside of mako
2018-01-01 23:51:08 +08:00
CYBAI
05b014e720
style: Move touch-action outside of mako
2017-12-28 23:13:39 +08:00
CYBAI
2eb396613b
style: Move will-change outside of mako
2017-12-16 21:47:59 +01:00
Emilio Cobos Álvarez
35d0e7cf0f
style: use the same type for overflow-clip-box longhands.
...
Needed to add the hacky padding_box scheme, will fix it up later.
2017-12-05 19:00:14 +01:00
Botond Ballo
5e2622f259
Bug 951793 - Style support for overscroll-behavior in Stylo. r=emilio
2017-11-24 16:48:04 -05:00
Emilio Cobos Álvarez
328f142f38
style: Cleanup a bit the scroll-snap-type properties.
...
Still not perfect, but at least a bit more consistent.
2017-10-25 20:12:37 +02:00
Emilio Cobos Álvarez
d972b07822
style: Move animation-name outside of mako.
2017-10-24 22:28:40 +02:00
Emilio Cobos Álvarez
dc414134bf
style: Move animation-iteration-count outside of mako.
2017-10-24 22:28:34 +02:00
Anthony Ramine
542a9337a4
Use generics for the vertical-align property
2017-08-30 23:01:12 +02:00