Skip to content

Commit

Permalink
[css-font-loading-3] Remove unused ForEachCallback (#5785)
Browse files Browse the repository at this point in the history
* [font-loading-3] Remove unused ForEachCallback

* Reuse BufferSource
  • Loading branch information
saschanaz authored Aug 5, 2024
1 parent c6fdc0c commit f31691f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions css-font-loading-3/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ The <code>FontFace</code> Interface</h2>
or they can be constructed manually from a url or binary data.

<xmp class="idl">
typedef (ArrayBuffer or ArrayBufferView) BinaryData;

dictionary FontFaceDescriptors {
CSSOMString style = "normal";
CSSOMString weight = "normal";
Expand All @@ -99,7 +97,7 @@ The <code>FontFace</code> Interface</h2>

[Exposed=(Window,Worker)]
interface FontFace {
constructor(CSSOMString family, (CSSOMString or BinaryData) source,
constructor(CSSOMString family, (CSSOMString or BufferSource) source,
optional FontFaceDescriptors descriptors = {});
attribute CSSOMString family;
attribute CSSOMString style;
Expand Down Expand Up @@ -255,7 +253,7 @@ The Constructor</h3>
2. If the {{source!!argument}} argument was a {{CSSOMString}},
set <var>font face's</var> internal {{[[Urls]]}} slot to the string.

If the {{source}} argument was a {{BinaryData}},
If the {{source}} argument was a {{BufferSource}},
set <var>font face's</var> internal {{[[Data]]}} slot to the passed argument.

3. If <var>font face's</var> {{[[Data]]}} slot is not <code>null</code>,
Expand Down

0 comments on commit f31691f

Please sign in to comment.