Skip to content

[css-font-4][editorial] Fix <'font'> syntax, simplify <font-variant-css2> and <font-width-css3> syntaxes #10832

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions css-fonts-4/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1705,7 +1705,7 @@ Shorthand font property: the 'font' property</h3>
<<font-variant-css2>> ||
<<'font-weight'>> ||
<<font-width-css3>> ]? <<'font-size'>> [ / <<'line-height'>> ]?
<<'font-family'>> ] |
<<'font-family'>># ] |
<<system-family-name>>
Initial: see individual properties
Applies to: all elements and text
Expand Down Expand Up @@ -1750,17 +1750,17 @@ Shorthand font property: the 'font' property</h3>
'font!!property' shorthand:

<pre class="prod"><dfn id="font-variant-css21-values"><<font-variant-css2>></dfn>
= [normal | small-caps]</pre>
= normal | small-caps</pre>

Values for the 'font-width!!property' property can also be included
but only those supported in CSS Fonts level 3,
none of the 'font-width!!property' values added in this specification
can be used in the 'font' shorthand:

<pre class="prod"><dfn id="font-width-css3-values"><<font-width-css3>></dfn>
= [normal | ultra-condensed | extra-condensed | condensed |
= normal | ultra-condensed | extra-condensed | condensed |
semi-condensed | semi-expanded | expanded | extra-expanded |
ultra-expanded]</pre>
ultra-expanded</pre>

Therefore we have the following classification
of font-related properties
Expand Down