Yusuf Sermet
f0fbcf204e
style: Create a stacking context for contain:paint.
...
Bug: 1463599
Reviewed-by: mattwoodrow
MozReview-Commit-ID: Ln72MOlHXwi
2018-06-02 12:04:48 +02:00
Brad Werth
b91ae6b1f9
style: support shape-margin.
...
Bug: 1265342
Reviewed-by: xidorn
MozReview-Commit-ID: 99pLZsFA9mj
2018-04-29 03:28:32 +02:00
Xidorn Quan
0f19c25706
style: Add CAN_ANIMATE_ON_COMPOSITOR in Servo side and propagate it to ServoCSSPropList.h.
...
Bug: 1454830
Reviewed-by: emilio
MozReview-Commit-ID: 2OBCliDY02g
2018-04-28 10:26:02 +02:00
Xidorn Quan
bc81f09833
style: Add GETCS_NEEDS_LAYOUT_FLUSH flag in Servo side and propagate it to ServoCSSPropList.h.
...
Bug: 1454830
Reviewed-by: emilio
MozReview-Commit-ID: 5k08FWjobCg
2018-04-28 10:26:02 +02:00
Xidorn Quan
7403ec8b70
style: Support prefs for aliases.
...
Bug: 1453521
Reviewed-by: heycam
MozReview-Commit-ID: 8DAFmLDVYlR
2018-04-16 20:15:13 +02:00
Fausto Núñez Alberro
cc838f54e5
Implement a URL-generic type for list-style-image
...
This should fix the following two "expected to fail" tests:
- getComputedStyle(elem) for url() listStyleImage uses the resolved URL
and elem.style uses the original URL
- getComputedStyle(elem) for url() listStyle uses the resolved URL
and elem.style uses the original URL
2018-04-03 22:01:26 +02:00
Xidorn Quan
cda4e6d751
Add comment for overflow-{x,y} applying to ::placeholder.
2018-03-27 17:55:04 +11:00
Xidorn Quan
a99ca543cd
Add SpecifiedImageUrl for <url> used as images.
2018-03-08 23:34:32 +11:00
Emilio Cobos Álvarez
220cc9ba65
style: Fix overflow-clip-box-{block,inline} to be under the right pref.
2018-02-28 00:37:07 +01:00
bors-servo
6df0dc5b27
Auto merge of #20124 - servo:perspective, r=emilio
...
Replace LengthOrNone by a specific type for the perspective property
<!-- 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/20124 )
<!-- Reviewable:end -->
2018-02-26 16:35:32 -05: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
Anthony Ramine
4a98fa70bf
Streamline parsing of NonNegativeLengthOrNumber a bit
2018-02-26 22:11:17 +01:00
Anthony Ramine
e2a6d07dad
Remove TransitionProperty::All
2018-02-26 14:30:53 +01:00
Emilio Cobos Álvarez
7473796aba
style: Unship the legacy syntax for -moz-transform.
...
Intent to unship link:
https://groups.google.com/d/msg/mozilla.dev.platform/T3PGm97MPNU/59XUavMlCgAJ
Reviewed-by: xidorn
Bug: 1438297
MozReview-Commit-ID: 6ybGBasPAWU
2018-02-19 10:46:14 +01:00
Manish Goregaokar
daea6d0f75
Set restyle_damage = reflow for some more properties
2018-02-09 08:48:07 -08:00
Manish Goregaokar
7e928b02f2
Make individual transform properties have restyle_damage = reflow_out_of_flow
2018-02-09 08:48:05 -08:00
Manish Goregaokar
8c2b7b41ef
Autogenerate compute_damage ( fixes #10622 )
2018-02-09 08:48:04 -08:00
Anthony Ramine
70a99cef15
Derive ToComputedValue for keywords without extra specified values
2018-02-03 18:44:56 +01:00
Anthony Ramine
1f8777bb0b
Move TransformStyle out of Mako files
2018-02-01 12:40:36 +01:00
CJ Ku
174f5f7128
Implement scale property styling
2018-01-31 22:12:34 +00:00
CJ Ku
de3e8c9a8b
Implement translate property styling
2018-01-31 22:12:33 +00:00
CJ Ku
62c0c6feee
Implement rotate property styling
2018-01-31 22:12:26 +00:00
Emilio Cobos Álvarez
8732a1d7de
style: Remove -servo-text-decorations-in-effect.
...
It is bogus, because it depends on the display property as it's cascaded, but
the display property can change afterwards, for example, if we get blockified
because we're the root element or a flex item.
Replace it with a normal field instead.
Also, it carries some weight, because it's the last property that uses this
concept of "derived" property, and "custom cascade". So we can remove some code
after this.
Compute it after the cascade process in StyleAdjuster.
2018-01-14 17:10:44 +01:00
CYBAI
0291a75b3c
style: Remove -servo-display-for-hypothetical-box from longhand
2018-01-13 20:54:50 +08:00
CYBAI
3f6a613bea
Use Python's True instead of string for arbitrary Python code in mako
2018-01-13 00:23:30 +08: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
af879523ea
style: Make all keywords CamelCase for consistency.
...
This prevents confusion and paves the ground for derive(Parse) of them.
2017-12-06 02:35:10 +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
Mats Palmgren
cdf7ae51b6
style: Add internal overflow-clip-box-block/-inline properties and make overflow-clip-box a shorthand.
...
Bug: 1422839
Reviewed-by: emilio
2017-12-05 18:20:21 +01:00
Ting-Yu Lin
1b14ca3a9d
style: Support 'shape-image-threshold' property
...
MozReview-Commit-ID: 14lzl3ln3Rg
2017-12-01 11:18:54 +08:00
Louis Chang
47d4d16539
Add a new value inner-spin-button to -moz-appearance in stylo.
2017-11-29 18:01:36 +08:00
Botond Ballo
5e2622f259
Bug 951793 - Style support for overscroll-behavior in Stylo. r=emilio
2017-11-24 16:48:04 -05:00
Markus Stange
4d64a6d973
Servo changes for -moz-appearance values-moz-mac-vibrant-titlebar-light/dark
2017-11-23 14:24:08 -05:00
Gecko Backout
a06a80b5da
Backed out changeset 2e20100d8f59 (bug 1417709) for error in toolkit/library/rust/target r=backout on a CLOSED TREE
...
Backs out https://github.com/servo/servo/pull/19255
2017-11-22 23:20:51 +00:00
Markus Stange
753304411a
Servo changes for -moz-appearance values -moz-mac-vibrant-titlebar-light/dark
2017-11-22 14:00:05 -05:00
Emilio Cobos Álvarez
01e41d0439
style: Replace "internal" properties with "enabled_in"
...
This allows enabling properties in ua sheets and chrome differently.
The setup is:
* enabled_in needs to be one of the four values:
["", "ua", "chrome", "content"]
* "chrome" implies "ua", and implies that they're explicitly enabled.
* "" implies the property will never be parsed.
* "content" implies the property is accessible unconditionally, modulo a pref.
Experimental still keeps trumping over those when the pref is enabled.
This PR replaces uses of internal="" by enabled_in="ua" or enabled_in="".
This may seem that it changes behavior, but since the properties where I added
enabled_in="" already unconditionally error from parse it's not.
Next step is annotating chrome-only properties.
2017-11-18 05:15:19 +01:00
Emilio Cobos Álvarez
128bb02e1d
style: Remove now unused gecko_pref_ident.
2017-11-16 14:31:37 +01:00
Emilio Cobos Álvarez
2bd91d21d7
style: Replace Gecko's hacky EXPERIMENTAL set with the same mechanism as servo.
...
We can remove the PREF_foo bits in a bit.
2017-11-16 14:31:36 +01:00
Emilio Cobos Álvarez
187d28c732
style: Add gecko_pref annotation to the properties.
2017-11-16 02:44:35 +01:00
Xidorn Quan
79ea639458
Add general impl in gecko_properties for TransformOrigin value and add -moz-window-transform-origin.
2017-11-12 10:59:55 -08:00
Xidorn Quan
dfbf632fd6
Add general impl in gecko_properties for Transform value and add -moz-window-transform.
2017-11-12 10:59:54 -08:00
Xidorn Quan
8b9bbfea75
Use helpers.predefined_type for transform property.
2017-11-12 10:59:53 -08:00
Gecko Backout
2c1b041fc6
Backed out changeset d77275db6419 (bug 1374178) for failure reftests/transform-3d/translatez-1a.html r=backout a=backout on a CLOSED TREE
...
Backs out https://github.com/servo/servo/pull/19106
2017-11-07 06:49:27 +00:00
Xidorn Quan
7dfcbb582a
Add general impl in gecko_properties for TransformOrigin value and add -moz-window-transform-origin.
2017-11-06 11:49:53 -08:00
Xidorn Quan
9f5195eeec
Add general impl in gecko_properties for Transform value and add -moz-window-transform.
2017-11-06 11:49:52 -08:00
Xidorn Quan
79fb584eac
Use helpers.predefined_type for transform property.
2017-11-06 11:49:50 -08:00
Manish Goregaokar
6631594e28
Replace old transform code with new generic code
2017-11-02 14:30:04 -07:00