1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:47:37 +00:00

LibWeb: Resolve CSS font property from value list

The font property now resolves into its various parts:

- font-family
- font-weight
- font-size
- font-style
- line-height

The font-variant and font-stretch parts are left unparsed since LibWeb
doesn't know how to render those.

Added `fonts.html` as a test for various forms of `font` declarations,
based on the examples in the spec.
This commit is contained in:
Sam Atkins 2021-07-21 15:39:40 +01:00 committed by Andreas Kling
parent a44d7670ab
commit 82f3228dd2
4 changed files with 251 additions and 2 deletions

View file

@ -48,6 +48,7 @@
<ul>
<li><a href="justify-content.html">Flexbox justify-content</a></li>
<li><a href="lists.html">Lists</a></li>
<li><a href="fonts.html">Fonts</a></li>
<li><a href="border-radius.html">Border-Radius</a></li>
<li><a href="custom-properties.html">Custom Properties</a></li>
<li><a href="flex.html">Flexboxes</a></li>