---
- namespace: canvas
  class: CanvasElement
  parameter_self: el
  method:
    - name: getContext
      parameters:
        - name: contextType
          parameter_type: string

- namespace: canvas
  class: CanvasContext
  parameter_self: ctx
  properties:
    - name: fillStyle
      property_type: string
  methods:
    - name: fillRect
      parameters:
        - name: x
          parameter_type: f64
        - name: "y"
          parameter_type: f64
        - name: height
          parameter_type: f64
        - name: width
          parameter_type: f64
    - name: clearRect
      parameters:
        - name: x
          parameter_type: f64
        - name: "y"
          parameter_type: f64
        - name: height
          parameter_type: f64
        - name: width
          parameter_type: f64