servo/components/shared
Martin Robinson fe8b23d14a
layout: Add a FontMetricsProvider for resolving font-relative units (#31966)
The only font relative unit that Servo knows how to resolve currently is
`rem` (relative to the root font size). This is because Stylo cannot do
any font queries. This adds a mechanism to allow this, exposing the
ability to properly render `ex` units in Servo.

This change only allows resolving some font size relative units thoug,
as Servo doesn't collect all the FontMetrics it needs to resolve them
all. This capability will be added in followup changes.

Some new tests fail:
 - ex-unit-001.html: This test fails because Servo does not yet have
   support for setting the weight using @font-face rules on web fonts.
 - ex-unit-004.html: This test fails because Servo does not yet have
   support for setting the Unicode range of a web font using @font-face
   rules.
 - first-available-font-001.html: This test fails because the above
   two feature are missing.
2024-04-04 12:35:15 +00:00
..
bluetooth clippy: fix warnings in components/shared (#31565) 2024-03-08 15:28:19 +00:00
canvas Update Stylo to 2023-10-16 (#31932) 2024-03-30 13:30:13 +00:00
compositing Initial internal support for multiple webviews (#31417) 2024-04-03 11:06:28 +00:00
devtools Move Stylo to its own repo (#31350) 2024-02-27 15:39:06 +00:00
embedder Initial internal support for multiple webviews (#31417) 2024-04-03 11:06:28 +00:00
gfx clippy: fix warnings in components/shared (#31565) 2024-03-08 15:28:19 +00:00
msg layout: Remove LayoutRPC and query layout via the Layout trait (#31937) 2024-03-29 16:25:47 +00:00
net clippy: Fix warnings in components/shared (#31627) 2024-03-12 17:22:05 +00:00
profile Move *_traits and other shared types to shared 2023-11-03 15:38:18 +00:00
script Rework “visible” to “throttled” in constellation + script + compositor (#31816) 2024-03-22 06:06:28 +00:00
script_layout layout: Add a FontMetricsProvider for resolving font-relative units (#31966) 2024-04-04 12:35:15 +00:00
webrender dependencies: Upgrade to WebRender 0.64 (#31486) 2024-03-14 17:40:54 +00:00