summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/resources/webidl2/test/syntax/idl/typedef-nested.widl
blob: 106f30b8f72ec7df496302b4a03ddddb55bf7f19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

      interface Point {
        attribute float x;
        attribute float y;
      };


      interface Rect {
        attribute Point topleft;
        attribute Point bottomright;
      };

  interface Widget {
    typedef sequence<Point> PointSequence;

    readonly attribute Rect bounds;

    boolean pointWithinBounds(Point p);
    boolean allPointsWithinBounds(PointSequence ps);
  };

  typedef [Clamp] octet value;