Skip to content

Commit

Permalink
[css-conditional-5] Import <font-format> and <font-tech> from CSS Fon…
Browse files Browse the repository at this point in the history
…ts (#8111)

Co-authored-by: Chris Lilley <[email protected]>
  • Loading branch information
cdoublev and svgeesus authored Jul 1, 2023
1 parent 20b6715 commit d6d9f3e
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions css-conditional-5/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -74,37 +74,21 @@ Extensions to the ''@supports'' rule</h2>
<dfn>&lt;supports-feature></dfn> = <<supports-selector-fn>> | <<supports-font-tech-fn>>
| <<supports-font-format-fn>> | <<supports-decl>>
<dfn>&lt;supports-font-tech-fn></dfn> = font-tech( <<font-tech>> )
<dfn>&lt;font-tech></dfn> = [ features-opentype | features-aat | features-graphite
| color-colrv0 | color-colrv1 | color-svg | color-sbix | color-cbdt
| variations | palettes | incremental ]
<dfn>&lt;supports-font-format-fn></dfn> = font-format( <<font-format>> )
<dfn>&lt;font-format></dfn> = [ collection | embedded-opentype | opentype
| svg | truetype | woff | woff2 ]
</pre>

ISSUE: <<font-format>> and <<font-tech>> should be imported from css-fonts-4, not defined here.


: <<supports-font-tech-fn>>
::
The result is true if the UA
<a href="#dfn-support-font-tech">supports the font tech</a>
provided as an argument to the function.

Note: The allowed values for the ''font-tech()'' function
are the same as those for the ''tech()'' function
in the '@font-face' '@font-face/src' descriptor.

: <<supports-font-format-fn>>
::
The result is true if the UA
<a href="#dfn-support-font-format">supports the font format</a>
provided as an argument to the function.

Note: The allowed values for the ''font-format()'' function
are the same as those for the ''format()'' function
in the '@font-face' '@font-face/src' descriptor.

<h3 id="support-definition-ext">
Extensions to the definition of support</h3>

Expand All @@ -116,7 +100,8 @@ Extensions to the definition of support</h3>
A CSS processor is considered to
<dfn export for=CSS id="dfn-support-font-format">support a font format</dfn>
when it is capable of utilising the specified [[css-fonts-4#font-format-definitions]]
in layout and rendering.
in layout and rendering,
and this format is not specified as a <<string>>.

<h2 id="when-rule">
Generalized Conditional Rules: the ''@when'' rule</h2>
Expand Down

0 comments on commit d6d9f3e

Please sign in to comment.