mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:47:45 +00:00
LibWeb: Support CSS font shorthand with up to 4 consecutive normal
All of the following properties in the font shorthand can be `normal`: - font-style - font-variant - font-weight - font-stretch This means that we must allow up to four consecutive `normal` at the start of a font shorthand value.
This commit is contained in:
parent
793c2ff65a
commit
6b3b056476
3 changed files with 41 additions and 1 deletions
10
Tests/LibWeb/Layout/input/font-with-many-normal-values.html
Normal file
10
Tests/LibWeb/Layout/input/font-with-many-normal-values.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
<!doctype html><style>
|
||||
.one { font: normal 200px/1 SerenitySans; }
|
||||
.two { font: normal normal 200px/1 SerenitySans; }
|
||||
.three { font: normal normal normal 200px/1 SerenitySans; }
|
||||
.four { font: normal normal normal normal 200px/1 SerenitySans; }
|
||||
</style>
|
||||
<span class=one>1</span>
|
||||
<span class=two>2</span>
|
||||
<span class=three>3</span>
|
||||
<span class=four>4</span>
|
Loading…
Add table
Add a link
Reference in a new issue