mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-17 19:07:15 +00:00
After working with the code for a while, it makes more sense to put all the parsing in Parser, instead of some of it living in StyleResolver. That means our current ValueListStyleValue needs to be replaced with specific StyleValue types for the properties that are shorthands or otherwise combine several values together. Here we implement FontStyleProperty, which represents a `font` CSS property. Also adjusted the fonts.html test page so that font-weights are featured in test cases without things we do not yet support.
33 lines
1.4 KiB
HTML
33 lines
1.4 KiB
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>CSS test</title>
|
|
<style type="text/css">
|
|
#monospace { font: 20px monospace; }
|
|
#a { font: 12pt/14pt sans-serif; }
|
|
#b { font: 80% cursive; }
|
|
#b2 { font: bold 80% cursive; }
|
|
#c { font: x-large/110% fantasy, serif; }
|
|
#d { font: 2em SerenitySans; }
|
|
#d2 { font: 400 2em SerenitySans; }
|
|
#e { font: bold italic large Helvetica, sans-serif; }
|
|
#f { font: normal small-caps 120%/120% monospace; }
|
|
#g { font: condensed oblique 12pt "Helvetica Neue", serif; }
|
|
#h { font: condensed oblique 25deg 12pt "Helvetica Neue", serif; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="monospace">font: 20px monospace;</div>
|
|
<div id="a">font: 12pt/14pt sans-serif;</div>
|
|
<div id="b">font: 80% cursive;</div>
|
|
<div id="b2">font: bold 80% cursive;</div>
|
|
<div id="c">font: x-large/110% fantasy, serif;</div>
|
|
<div id="d">font: 2em SerenitySans;</div>
|
|
<div id="d2">font: 400 2em SerenitySans;</div>
|
|
<div id="e">font: bold italic large Helvetica, sans-serif;</div>
|
|
<div id="f">font: normal small-caps 120%/120% monospace;</div>
|
|
<div id="g">font: condensed oblique 12pt "Helvetica Neue", serif;</div>
|
|
<div id="h">font: condensed oblique 25deg 12pt "Helvetica Neue", serif;</div>
|
|
</body>
|
|
</html>
|