Sha256: 5910f8a5086e53a1327e572209d61223bae85b8d2af4d8bd3033c4a3656a94ce

Contents?: true

Size: 522 Bytes

Versions: 4

Compression:

Stored size: 522 Bytes

Contents

# frozen_string_literal: true

module Watir
  class Font < HTMLElement
    #
    # size of font
    # This is in the whatwg spec was not generated: https://html.spec.whatwg.org/#htmlfontelement
    #
    # @return [Integer]
    #

    def size
      attribute_value(:size)
    end
  end # Font

  module Container
    def font(opts = {})
      Font.new(self, opts.merge(tag_name: 'font'))
    end

    def fonts(opts = {})
      FontCollection.new(self, opts.merge(tag_name: 'font'))
    end
  end # Container
end # Watir

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
watir-7.3.0 lib/watir/elements/font.rb
watir-7.2.2 lib/watir/elements/font.rb
watir-7.2.1 lib/watir/elements/font.rb
watir-7.2.0 lib/watir/elements/font.rb