hyTags
HomeHome DocumentationDocumentation

style-set

Sets the inline style value of a CSS property on an element
Parameter
Type
Description
name
String
The name of the CSS property to set
value
String
The value to assign to the CSS property
return
void
No return value
Test Case:Set inline style
    <div></div>
    
    <style-set name="color" value="red">
    <style-get name="color">
    <assert-equal value="red" type="string">
    
    👆 Try to change something!
  • Test Case:Set multiple styles
      <div></div>
      
      <style-set name="color" value="blue">
      <style-set name="font-size" value="16px">
      <style-get name="color">
      <assert-equal value="blue" type="string">
      
      👆 Try to change something!
    • Test succeeded Test failed