Implementation:SeleniumHQ Selenium Closure Math Box
| Knowledge Sources | |
|---|---|
| Domains | JavaScript_Atoms, Vendored_Library |
| Last Updated | 2026-02-12 00:00 GMT |
Overview
Vendored Google Closure Library module providing a numeric box utility class used by Selenium JavaScript atoms.
Description
goog.math.Box is a vendored copy of the Google Closure Library module. It provides a class for representing a box defined by top, right, bottom, and left values, useful for representing margins and padding. The class assumes screen coordinates (larger Y is further from the top). It includes methods for bounding box creation from coordinates, expansion, and containment checks. Selenium uses this as part of its JavaScript atom infrastructure.
Usage
This module is consumed internally by Selenium's JavaScript atoms build system. Not imported directly by end users.
Code Reference
Source Location
- Repository: SeleniumHQ_Selenium
- File: third_party/closure/goog/math/box.js
- Lines: 1-418
Key Exports
goog.provide('goog.math.Box');
goog.math.Box = function(top, right, bottom, left) { ... };
goog.math.Box.boundingBox = function(var_args) { ... };