Skip to content

Commit 82f017f

Browse files
darrnshntabatkins
authored andcommitted
Add font reification (w3c#731)
* Add font reification * Fix up font reification
1 parent 9b58876 commit 82f017f

File tree

1 file changed

+107
-18
lines changed

1 file changed

+107
-18
lines changed

css-typed-om/Overview.bs

Lines changed: 107 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3509,58 +3509,147 @@ regardless of what property it is for.
35093509
::
35103510

35113511
: <a>font</a>
3512-
::
3512+
:: For both specified and computed values,
3513+
reify as a {{CSSStyleValue}}
3514+
and return the result.
35133515

35143516
: <a>font-family</a>
3515-
::
3517+
:: For both specified and computed values,
3518+
reify as a {{CSSStyleValue}}
3519+
and return the result.
35163520

35173521
: <a>font-language-override</a>
3518-
::
3522+
:: For both specified and computed values:
3523+
3524+
1. If the value is <css>normal</css>,
3525+
[=reify an identifier=] from the value
3526+
and return the result.
3527+
3528+
2. Otherwise, reify as a {{CSSStyleValue}}
3529+
and return the result.
35193530

35203531
: <a>font-max-size</a>
3521-
::
3532+
:: For both specified and computed values:
3533+
3534+
1. If the value is an <<absolute-size>>, <<relative-size>> or <css>infinity</css>,
3535+
[=reify an identifier=] from the value
3536+
and return the result.
3537+
3538+
2. Otherwise, [=reify a numeric value=] from the value
3539+
and return the result.
35223540

35233541
: <a>font-min-size</a>
3524-
::
3542+
:: Same as 'font-size'
35253543

35263544
: <a>font-optical-sizing</a>
3527-
::
3545+
:: For both specified and computed values,
3546+
[=reify an identifier=] from the value
3547+
and return the result.
35283548

35293549
: <a>font-palette</a>
3530-
::
3550+
:: For both specified and computed values:
3551+
3552+
1. If the value is <css>normal</css>, <css>light</css> or <css>dark</css>,
3553+
[=reify an identifier=] from the value
3554+
and return the result.
3555+
3556+
2. Otherwise, reify as a {{CSSStyleValue}}
3557+
and return the result.
35313558

35323559
: <a>font-presentation</a>
3533-
::
3560+
:: For both specified and computed values,
3561+
[=reify an identifier=] from the value
3562+
and return the result.
35343563

35353564
: <a>font-size</a>
3536-
::
3565+
:: For both specified and computed values:
3566+
3567+
1. If the value is an <<absolute-size>> or <<relative-size>>,
3568+
[=reify an identifier=] from the value
3569+
and return the result.
3570+
3571+
2. Otherwise, [=reify a numeric value=] from the value
3572+
and return the result.
35373573

35383574
: <a>font-size-adjust</a>
3539-
::
3575+
:: For both specified and computed values:
3576+
3577+
1. If the value is <css>none</css>,
3578+
[=reify an identifier=] from the value
3579+
and return the result.
3580+
3581+
2. Otherwise, [=reify a numeric value=] from the value
3582+
and return the result.
35403583

35413584
: <a>font-stretch</a>
3542-
::
3585+
:: For both specified and computed values:
3586+
3587+
1. If the value is a <<percentage>>,
3588+
[=reify a numeric value=] from the value
3589+
and return the result.
3590+
3591+
2. Otherwise, [=reify an identifier=] from the value
3592+
and return the result.
35433593

35443594
: <a>font-style</a>
3545-
::
3595+
:: For both specified and computed values:
3596+
3597+
1. If the value is <css>normal</css> or <css>italic</css>,
3598+
[=reify an identifier=] from the value
3599+
and return the result.
3600+
3601+
2. Otherwise, reify as a {{CSSStyleValue}}
3602+
and return the result.
35463603

35473604
: <a>font-synthesis</a>
3548-
::
3605+
:: For both specified and computed values:
3606+
3607+
1. If the value is <css>none</css>, <css>weight</css>, <css>style</css> or <css>small-caps</css>,
3608+
[=reify an identifier=] from the value
3609+
and return the result.
3610+
3611+
2. Otherwise, reify as a {{CSSStyleValue}}
3612+
and return the result.
35493613

35503614
: <a>font-variant</a>
3551-
::
3615+
:: For both specified and computed values,
3616+
reify as a {{CSSStyleValue}}
3617+
and return the result.
35523618

35533619
: <a>font-variant-alternates</a>
3554-
::
3620+
:: For both specified and computed values:
3621+
3622+
1. If the value is <css>none</css> or <css>historical-forms</css>,
3623+
[=reify an identifier=] from the value
3624+
and return the result.
3625+
3626+
2. Otherwise, reify as a {{CSSStyleValue}}
3627+
and return the result.
35553628

35563629
: <a>font-variant-emoji</a>
3557-
::
3630+
:: For both specified and computed values,
3631+
[=reify an identifier=] from the value
3632+
and return the result.
35583633

35593634
: <a>font-variation-settings</a>
3560-
::
3635+
:: For both specified and computed values:
3636+
3637+
1. If the value is <css>normal</css>,
3638+
[=reify an identifier=] from the value
3639+
and return the result.
3640+
3641+
2. Otherwise, reify as a {{CSSStyleValue}}
3642+
and return the result.
35613643

35623644
: <a>font-weight</a>
3563-
::
3645+
:: For both specified and computed values:
3646+
3647+
1. If the value is <css>normal</css>, <css>bold</css>, <css>bolder</css> or <css>lighter</css>,
3648+
[=reify an identifier=] from the value
3649+
and return the result.
3650+
3651+
2. Otherwise, [=reify a numeric value=] from the value
3652+
and return the result.
35643653

35653654
: <a>gap</a>
35663655
::

0 commit comments

Comments
 (0)