Implementation:SeleniumHQ Selenium Closure Style
| Knowledge Sources | |
|---|---|
| Domains | JavaScript_Atoms, Vendored_Library |
| Last Updated | 2026-02-12 00:00 GMT |
Overview
Vendored Google Closure Library module providing element style utilities used by Selenium JavaScript atoms.
Description
goog.style is a vendored copy of the Google Closure Library module. It provides utility functions for getting and setting element styles, computing positions, sizes, scroll offsets, and visibility of DOM elements. Key capabilities include setting individual or batch CSS properties, getting computed styles, calculating element bounding boxes, page offsets, viewport dimensions, and checking element visibility. 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/style/style.js
- Lines: 1-2082
Key Exports
goog.provide('goog.style');
// Key functions
goog.style.setStyle = function(element, style, opt_value) { ... };
goog.style.getStyle_ = function(element, style) { ... };
goog.style.getComputedStyle = function(element, style) { ... };
goog.style.getPageOffset = function(el) { ... };
goog.style.getSize = function(element) { ... };
goog.style.getBounds = function(element) { ... };
goog.style.isElementShown = function(el) { ... };