#css-selectors #stylo #properties #engine #servo-style-crate

sys stylo

The Stylo CSS engine

5 releases (3 breaking)

new 0.3.0 May 5, 2025
0.2.1 Apr 3, 2025
0.2.0 Mar 31, 2025
0.1.0 Oct 12, 2024
0.0.1 Apr 29, 2024

#563 in Images

Download history 8/week @ 2025-01-12 6/week @ 2025-02-02 2/week @ 2025-02-09 3/week @ 2025-02-16 1/week @ 2025-02-23 2/week @ 2025-03-02 319/week @ 2025-03-30 399/week @ 2025-04-06 323/week @ 2025-04-13 474/week @ 2025-04-20 518/week @ 2025-04-27

1,741 downloads per month
Used in 6 crates (3 directly)

MPL-2.0 license

4.5MB
105K SLoC

Contains (Python package, 76KB) Mako-1.1.2-py2.py3-none-any.whl

servo-style

Style system for Servo, using rust-cssparser for parsing.


lib.rs:

Calculate specified and computed values from a tree of DOM nodes and a set of stylesheets.

In particular, this crate contains the definitions of supported properties, the code to parse them into specified values and calculate the computed values based on the specified values, as well as the code to serialize both specified and computed values.

The main entry point is recalc_style_at.

Major dependencies are the cssparser and selectors crates.

Dependencies

~10–18MB
~194K SLoC