Martin Robinson
d31cdb682f
Make the choice of layout runtime setting
...
Co-authored-by: Samson <16504129+sagudev@users.noreply.github.com>
2023-07-06 14:49:24 +02:00
Oriol Brufau
e2901169c8
Further changes required by Servo
2023-06-09 11:18:07 +02:00
Emilio Cobos Álvarez
2a67752418
style: Style system and plumbing for mix-blend-mode: plus-lighter
...
Differential Revision: https://phabricator.services.mozilla.com/D137951
2023-06-09 11:18:07 +02:00
Oriol Brufau
1cc44bd065
style: Will-change should only create stacking contexts / containing blocks / etc if the property it'd change would apply
...
As per https://drafts.csswg.org/css-will-change/#will-change .
> If any non-initial value of a property would cause the element to
> generate a containing block for absolutely positioned elements,
> specifying that property in will-change must cause the element to
> generate a containing block for absolutely positioned elements.
But in this case the transform property wouldn't apply to the element so
there's no reason to create a stacking-context.
Differential Revision: https://phabricator.services.mozilla.com/D114121
2023-05-19 19:06:09 +02:00
Manish Goregaokar
139f240baf
Enable clip property in layout 2020
2020-07-27 19:59:59 -07:00
Emilio Cobos Álvarez
7c96aed31d
style: Sync some other changes.
2020-04-16 17:50:17 +02:00
Martin Robinson
d03560b0f1
Add layout_2020 support for filters and mix-blend-mode
2020-02-19 10:26:13 +01:00
Simon Sapin
ddb4e369dd
Stylo: replace product={gecko,servo} with engine={gecko,servo-2013,servo-2020}
...
Renaming the variable helped make sure I looked at every use.
2019-07-29 17:37:03 +02:00
Boris Chiou
87231e676d
style: Add percentage for opacity (i.e. <alpha-value>).
...
The following properties accept <alpha-value> [1], which is
"<number> | <percentage>", so we update the parser, spec links, and
their web-platform-tests.
1. opacity
2. flood-opacity
3. fill-opacity
4. stroke-opacity
5. stop-opacity
6. -moz-window-opacity
Besides, shape-image-threshold [2] still only accepts <number>, so we need
to support a different version of `Opacity::parse()`.
[1] https://drafts.csswg.org/css-color/#typedef-alpha-value
[2] https://drafts.csswg.org/css-shapes/#shape-image-threshold-property
Differential Revision: https://phabricator.services.mozilla.com/D37493
2019-07-23 22:54:04 +02:00
Emilio Cobos Álvarez
65bf72f131
style: Set the property restrictions flags from the centralized list.
...
Differential Revision: https://phabricator.services.mozilla.com/D37721
2019-07-23 22:54:04 +02:00
Emilio Cobos Álvarez
fbf6b926e5
style: Servo doesn't support backdrop-filter yet.
2019-07-08 14:59:16 +02:00
Connor Brewster
1aef82f806
style: Parse backdrop-filter CSS property.
...
Differential Revision: https://phabricator.services.mozilla.com/D35816
2019-07-08 12:44:15 +02:00
Alastor Wu
84a5ab2ba8
style: restrict CSS properties for '::cue'.
...
According to the spec [1], only those CSS properties listed on the spec can be applied on the `::cue`.
[1] https://www.w3.org/TR/webvtt1/#the-cue-pseudo-element
Differential Revision: https://phabricator.services.mozilla.com/D34262
2019-07-08 12:42:46 +02:00
Emilio Cobos Álvarez
57868f571f
style: Use cbindgen for filters.
...
Had to implement some OwnedSlice bits that the canvas code used.
Differential Revision: https://phabricator.services.mozilla.com/D31799
2019-06-04 01:03:52 -04:00
violet
d552969ca1
style: Support AllowQuirks::Always option in helpers.mako.rs
...
Differential Revision: https://phabricator.services.mozilla.com/D29936
2019-05-29 16:14:21 +02:00
Emilio Cobos Álvarez
5f6c8d9060
style: Add bindings for box shadows, and remove nsCSSShadowArray and friends.
...
Differential Revision: https://phabricator.services.mozilla.com/D30547
2019-05-29 16:14:11 +02:00
Hiroyuki Ikezoe
a0d1a038a2
style: Drop layout.css.mix-blend-mode.enabled pref.
...
It was enabled by default in bug 952643.
Differential Revision: https://phabricator.services.mozilla.com/D15706
2019-01-07 00:32:53 +01:00
Jan Andre Ikenmeyer
1d6fe65401
Update MPL license to https (part 4)
2018-11-19 14:47:27 +01:00
Emilio Cobos Álvarez
ae671a7d26
style: Use a consistent style for longhands.
...
It's a bit of a mess.
Differential Revision: https://phabricator.services.mozilla.com/D3892
2018-09-03 12:31:10 +02:00
Emilio Cobos Álvarez
0a95513368
style: Rename the properties directories from "shorthand" to "shorthands", "longhand" to "longhands".
...
Bug: 1468651
Reviewed-by: heycam
MozReview-Commit-ID: CY4THCC4zkX
2018-06-23 20:35:18 +02:00