# frozen_string_literal: true

require "metanorma/document/basic_document/idelements/media"

module Metanorma; module Document; module BasicDocument
  # Container for video content.
  class Video < Media
    register_element "video" do
      # Alternative files to use as media.
      nodes :altsource, AltSource

      # Height of video. Can have "auto" as value.
      attribute :height, Integer

      # Width of video. Can have "auto" as value.
      attribute :width, Integer
    end
  end
end; end; end
