Class: Puppeteer::Bidi::ElementHandle::BoxModel

Inherits:
Data
  • Object
show all
Defined in:
lib/puppeteer/bidi/element_handle.rb,
sig/puppeteer/bidi/element_handle.rbs

Overview

Box model data class representing element's CSS box model Each quad (content, padding, border, margin) contains 4 Points representing corners Corners are ordered: top-left, top-right, bottom-right, bottom-left

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#borderObject (readonly)

Returns the value of attribute border

Returns:

  • (Object)

    the current value of border



19
20
21
# File 'lib/puppeteer/bidi/element_handle.rb', line 19

def border
  @border
end

#contentObject (readonly)

Returns the value of attribute content

Returns:

  • (Object)

    the current value of content



19
20
21
# File 'lib/puppeteer/bidi/element_handle.rb', line 19

def content
  @content
end

#heightObject (readonly)

Returns the value of attribute height

Returns:

  • (Object)

    the current value of height



19
20
21
# File 'lib/puppeteer/bidi/element_handle.rb', line 19

def height
  @height
end

#marginObject (readonly)

Returns the value of attribute margin

Returns:

  • (Object)

    the current value of margin



19
20
21
# File 'lib/puppeteer/bidi/element_handle.rb', line 19

def margin
  @margin
end

#paddingObject (readonly)

Returns the value of attribute padding

Returns:

  • (Object)

    the current value of padding



19
20
21
# File 'lib/puppeteer/bidi/element_handle.rb', line 19

def padding
  @padding
end

#widthObject (readonly)

Returns the value of attribute width

Returns:

  • (Object)

    the current value of width



19
20
21
# File 'lib/puppeteer/bidi/element_handle.rb', line 19

def width
  @width
end

Class Method Details

.members[ :content, :padding, :border, :margin, :width, :height ]

Returns:

  • ([ :content, :padding, :border, :margin, :width, :height ])


60
# File 'sig/puppeteer/bidi/element_handle.rbs', line 60

def self.members: () -> [ :content, :padding, :border, :margin, :width, :height ]

.new(content, padding, border, margin, width, height) ⇒ instance .new(content:, padding:, border:, margin:, width:, height:) ⇒ instance

Overloads:

  • .new(content, padding, border, margin, width, height) ⇒ instance

    Parameters:

    • content (Object)
    • padding (Object)
    • border (Object)
    • margin (Object)
    • width (Object)
    • height (Object)

    Returns:

    • (instance)
  • .new(content:, padding:, border:, margin:, width:, height:) ⇒ instance

    Parameters:

    • content: (Object)
    • padding: (Object)
    • border: (Object)
    • margin: (Object)
    • width: (Object)
    • height: (Object)

    Returns:

    • (instance)


57
58
# File 'sig/puppeteer/bidi/element_handle.rbs', line 57

def self.new: (untyped content, untyped padding, untyped border, untyped margin, untyped width, untyped height) -> instance
| (content: untyped, padding: untyped, border: untyped, margin: untyped, width: untyped, height: untyped) -> instance

Instance Method Details

#members[ :content, :padding, :border, :margin, :width, :height ]

Returns:

  • ([ :content, :padding, :border, :margin, :width, :height ])


62
# File 'sig/puppeteer/bidi/element_handle.rbs', line 62

def members: () -> [ :content, :padding, :border, :margin, :width, :height ]