W3C home > Mailing lists > Public > public-css-archive@w3.org > September 2020

[csswg-drafts] [css-regions] Region cannot be used as an IDL type (#5519)

From: Philip Jägenstedt via GitHub <sysbot+gh@w3.org>
Date: Wed, 16 Sep 2020 18:52:17 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-702997147-1600282336-sysbot+gh@w3.org>
foolip has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-regions] Region cannot be used as an IDL type ==
https://drafts.csswg.org/css-regions/#idl-index current has this:
partial interface Document {
  readonly attribute NamedFlowMap namedFlows;

 MapClass=(CSSOMString, NamedFlow)] interface NamedFlowMap {
  NamedFlow? get(CSSOMString flowName);
  boolean has(CSSOMString flowName);
  NamedFlowMap set(CSSOMString flowName, NamedFlow flowValue);
  boolean delete(CSSOMString flowName);

interface NamedFlow : EventTarget {
  readonly attribute CSSOMString name;
  readonly attribute boolean overset;
  sequence<Region> getRegions();
  readonly attribute short firstEmptyRegionIndex;
  sequence<Node> getContent();
  sequence<Region> getRegionsByContent(Node node);

interface mixin Region {
  readonly attribute CSSOMString regionOverset;
  sequence<Range>? getRegionFlowRanges();

Element includes Region;

`Region` is used as a type in the `sequence<Region>` return value. However, `Region` isn't an [IDL type](https://heycam.github.io/webidl/#idl-types), it's a piece of syntax like partial interfaces. My best guess/understanding is that it's not possible to use interface mixins as a shorthand for the interfaces that include those mixins.

So, probably `sequence<Element>` should probably be used here instead.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5519 using your GitHub account

Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 16 September 2020 18:52:19 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:42:16 UTC