All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.raquo.laminar.defs.styles.traits.TextUnderlinePosition.scala Maven / Gradle / Ivy

The newest version!
package com.raquo.laminar.defs.styles.traits

import com.raquo.laminar.keys.StyleProp
import com.raquo.laminar.modifiers.KeySetter.StyleSetter

// #NOTE: GENERATED CODE
//  - This file is generated at compile time from the data in Scala DOM Types
//  - See `project/DomDefsGenerator.scala` for code generation params
//  - Contribute to https://github.com/raquo/scala-dom-types to add missing tags / attrs / props / etc.

trait TextUnderlinePosition extends Auto { this: StyleProp[_] =>

  /**
    * This keyword allows the browser to use an algorithm to choose between
    * under and alphabetic.
    */
  override lazy val auto: StyleSetter = this := "auto"

  /**
    * This keyword forces the line to be set below the alphabetic baseline, at
    * a position where it won't cross any descender. This is useful to prevent
    * chemical or mathematical formulas, which make a large use of subscripts,
    * to be illegible.
    */
  lazy val under: StyleSetter = this := "under"

  /**
    * In vertical writing-modes, this keyword forces the line to be placed on
    * the left of the characters. In horizontal writing-modes, it is a synonym
    * of under.
    */
  lazy val left: StyleSetter = this := "left"

  /**
    * In vertical writing-modes, this keyword forces the line to be placed on
    * the right of the characters. In horizontal writing-modes, it is a synonym
    * of under.
    */
  lazy val right: StyleSetter = this := "right"

  lazy val underLeft: StyleSetter = this := "under left"

  lazy val underRight: StyleSetter = this := "under right"

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy