Jonathan Kew
17d33183c2
style: Fix serialization of the font-variant shorthand when font-variant-emoji is preffed off
...
Depends on D160256
Differential Revision: https://phabricator.services.mozilla.com/D160257
2023-11-03 08:59:49 +01:00
Oriol Brufau
8a5ba3fe16
Further changes required by Servo
2023-11-03 08:59:49 +01:00
Emilio Cobos Álvarez
efdf518acc
style: Remove system font support for various font longhands
...
We don't use them[1], and these are generally not properties that
authors would be able to set via the font shorthand anyways.
Let's simplify the code. This fixes the font-variant bug and also
unblocks further clean-ups of these properties in the future.
[1]: https://searchfox.org/mozilla-central/rev/59f0bf3c13dd455d9f5415b89178de701ea6b850/widget/LookAndFeelTypes.ipdlh#12-18
Differential Revision: https://phabricator.services.mozilla.com/D160352
2023-11-03 08:59:49 +01:00
Jonathan Kew
8149cd4a0c
style: Add support for the CSS font-variant-emoji property to the style system
...
Differential Revision: https://phabricator.services.mozilla.com/D147494
2023-11-03 08:59:49 +01:00
Oriol Brufau
d5e3a4e3a6
Further changes required by Servo
2023-11-03 08:59:49 +01:00
Jonathan Kew
6a98b777e0
style: CSS support for the font-palette property
...
This is just the CSS parsing, not yet connected to the rendering back-end.
Differential Revision: https://phabricator.services.mozilla.com/D157957
2023-11-03 08:59:49 +01:00
Jonathan Kew
becb855b3a
style: Only accept the CSS2 font-variant values (normal/small-caps) in the font shorthand; CSS Fonts 3/4 font-variant additions are not allowed
...
Differential Revision: https://phabricator.services.mozilla.com/D149440
2023-10-02 14:37:19 +00:00
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
Emilio Cobos Álvarez
d86e449e8c
style: Add system-ui boilerplate
...
Alias -apple-system to it, and put it behind a pref for now. This is
pretty boring (read: uncontroversial hopefully) code. The follow-up work
is modifying StaticPresData to look up the fonts using system APIs,
probably. Maybe a bit more work if on macOS they can't be named.
Differential Revision: https://phabricator.services.mozilla.com/D119984
2023-05-24 18:32:39 +02:00
Oriol Brufau
3024516019
Further changes required by Servo
2023-05-16 22:43:09 +02:00
Oriol Brufau
4d2ccaf445
style: Use a single system font definition rather than two
...
Follow the pattern we use for system colors.
Differential Revision: https://phabricator.services.mozilla.com/D108822
2023-05-16 13:16:53 +02:00
Oriol Brufau
5ef832b778
style: Convert the font-stretch descriptor to use NonNegativePercentage
...
Depends on D109285
Differential Revision: https://phabricator.services.mozilla.com/D109286
2023-05-16 13:04:14 +02:00
Emilio Cobos Álvarez
685e749cfc
style: Switch all callsites of try() to try_parse() in the style crate.
...
Fully automated via:
$ rg -l '\.try\(' | xargs sed -i 's/\.try(/.try_parse(/g'
$ cd servo/components/style && cargo +nightly fmt
Differential Revision: https://phabricator.services.mozilla.com/D80099
2020-06-18 23:51:14 +02:00
Anthony Ramine
b3d30d284e
Start implementing text in layout 2020
2019-11-25 10:54:46 +01:00
Emilio Cobos Álvarez
7d23cfb91e
style: Always serialize aspect-ratio and font shorthand with spaces around the slash.
...
Differential Revision: https://phabricator.services.mozilla.com/D46568
2019-10-09 13:21:35 +02: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
Jan Andre Ikenmeyer
1d6fe65401
Update MPL license to https (part 4)
2018-11-19 14:47:27 +01:00
Simon Sapin
e1fcffb336
Use 2018-style paths in code generated by Mako
2018-11-10 17:47:28 +01:00
Xidorn Quan
ce0496e116
style: Generate ComputedStyleMap entry list from property data.
...
This changes the order of properties returned from gCS. The old order
doesn't make much sense, and other browsers don't agree on an identical
order either, so it should be trivial to change it. Also the spec isn't
super clear / useful in this case.
Several -moz-prefixed properties are excluded from the list due to their
being internal. I suspect they are never accessible anyway, so probably
nothing gets changed by this.
Bug: 1471114
Reviewed-by: xidorn
MozReview-Commit-ID: 9LfangjpJ3P
2018-07-01 00:07:50 +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