New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 690601 link

Starred by 3 users

Issue metadata

Status: Duplicate
Merged: issue 697121
Owner: ----
Closed: Apr 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 674593


Show other hotlists

Hotlists containing this issue:
Non-Standard-IDL


Sign in to add a comment

Remove or standardize FontFaceSet#size

Project Member Reported by lunalu@chromium.org, Feb 9 2017

Issue description

Couldn't find spec for this API. Should we remove it or standardize it?
 

Comment 1 by phistuck@gmail.com, Feb 9 2017

Huh, the Microsoft Edge API Catalog lists it as existing in a specification, Safari and Firefox. Since Chrome does not expose a FontFaceSet constructor, the API catalog does not know it is supported, but it is.

Anyway, I believe this is actually specified in the specification, though a bit buried in the WebIDL language.

In https://drafts.csswg.org/css-font-loading/#FontFaceSet-interface you can see -
  // FontFaceSet is Set-like!
  setlike<FontFace>;

In https://heycam.github.io/webidl/#idl-setlike you can see the note that mentions size.

So this is most probably a WontFix, but I will someone more knowledgeable decide.

Comment 2 by foolip@chromium.org, Feb 10 2017

Cc: j...@opera.com
Components: -Blink>CSS Blink>Bindings
https://heycam.github.io/webidl/#es-set-size does say that setlike implies a size property. Looking at the generated code for TestInterface2 (has setlike but not size) it looks like the size attribute isn't being added automatically.

jl@, it looks like you added setlike in https://chromium.googlesource.com/chromium/src/+/9016ef32769c396deb32c17dc5f3ff4a6d8acdd4, is this a known issue?

Comment 3 by bashi@chromium.org, Feb 10 2017

Status: Available (was: Untriaged)
IIUC our setlike/maplike support is limited and isn't fully compliant with the spec. I think a right fix would be improving our setlike/maplike support first (e.g. generate size callback automatically) then removing size attribute from FontFaceSet.
Cc: foolip@chromium.org
Mergedinto: 697121
Status: Duplicate (was: Available)
 Bug 697121  includes extending our maplike/setlike support to include size.

Sign in to add a comment