// Like style(), but with length props (width, height, border-width, font-size) scaled into rendered (on-screen) px by the zoom
ele.renderedStyle(name?: string): unknownLike style(), but with length props (width, height, border-width, font-size) scaled into rendered (on-screen) px by the zoom.
| Name | Description |
|---|---|
name: string? | a property name; omit for the whole group |
Returns
unknownthe rendered-space value, or the whole group's props
Example
cy.zoom(2);console.log(cy.getElementById('a').renderedStyle('width')); // 60Also spelled eles.renderedCss.