Skip to content
This repository has been archived by the owner on Dec 17, 2021. It is now read-only.

Latest commit

 

History

History
14 lines (9 loc) · 768 Bytes

readsync.md

File metadata and controls

14 lines (9 loc) · 768 Bytes

CSS/readSync()

This function returns one or more style properties for the given element. It is a convenient alternative to window.getComputedStyle. It also has special support for vendor-prefixed properties.

The suffix Sync differentiates this method from its Async counterpart - readAsync(). Unlike the Async counterpart, readSync() is a normal function that runs in the same flow with that of the calling code.

Import

import readSync from '@web-native-js/play-ui/src/css/readSync.js';

Syntax

See cssSync() - Get Computed Properties