Pretty much every CSS Style can be set to some string like "auto" or "inherit", so we provide this as an escape hatch for all Style[_] objects even if they typically contain Int or Double values.
Pretty much every CSS Style can be set to some string like "auto" or "inherit", so we provide this as an escape hatch for all Style[_] objects even if they typically contain Int or Double values.
We do not want to use Scala.js' |
type operator because it is not supported on the JVM.
(Since version ) see corresponding Javadoc for more information.
This trait contains functionality for creating Styles and Style Setters.
If extending or instantiating this trait, you will need to override implicit defs. See the SimpleStyleBuilder trait in Scala DOM Builder project for an example of that.
– represents an operation of setting a certain CSS style property to a certain value. Often a subtype of com.raquo.domtypes.generic.Modifier