mirror of
https://github.com/servo/servo.git
synced 2025-09-06 21:18:20 +01:00
Add font-size absolute size keywords. Fix #3417.
Relative size keywords are still missing: https://github.com/servo/servo/issues/3423
This commit is contained in:
parent
010d87b93e
commit
4e71b215b8
7 changed files with 47 additions and 49 deletions
13
tests/ref/font_size.html
Normal file
13
tests/ref/font_size.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<!DOCTYPE html>
|
||||
<title>font-size (issues #1435, #3417)</title>
|
||||
<body style="font-size: 20px">
|
||||
<p style="font-size: 24pt">24pt is 32px.
|
||||
<p style="font-size: 2em">2em is 40px.
|
||||
<p style="font-size: 200%">200% is 40px.
|
||||
<p style="font-size: xx-small">xx-small is 9.6px.
|
||||
<p style="font-size: x-small">x-small is 12px.
|
||||
<p style="font-size: small">small is 14.2222…px.
|
||||
<p style="font-size: medium">medium is 16px.
|
||||
<p style="font-size: large">large is 19.2px.
|
||||
<p style="font-size: x-large">x-large is 24px.
|
||||
<p style="font-size: xx-large">xx-large is 32px.
|
Loading…
Add table
Add a link
Reference in a new issue