hyTags
HomeHome DocumentationDocumentation

style-get-computed

Gets the computed style value of a CSS property on an element
Parameter
Type
Description
name
String
The name of the CSS property to retrieve
return
string
The computed style value as a string, or nil if not found
Test Case:Get computed style from inline style
    <div></div>
    
    <style-set name="color" value="red">
    <style-get-computed name="color">
    <assert-equal value="rgb(255, 0, 0)" type="string">
    
    👆 Try to change something!
  • Test succeeded Test failed