miso
Copyright(C) 2016-2026 David M. Johnson
LicenseBSD3-style (see the file LICENSE)
MaintainerDavid M. Johnson <code@dmj.io>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Miso.Mathml.Property

Description

Overview

Miso.Mathml.Property provides Attribute smart constructors for MathML attributes. They are used alongside the element constructors from Miso.Mathml.Element. The module is re-exported by Miso.Mathml.

Quick start

import Miso.Mathml.Element
import Miso.Mathml.Property

styledFrac :: View model action
styledFrac =
  math_ [ display_ "block" ]
    [ mfrac_ [ linethickness_ "2px" ]
        [ mn_ [ mathvariant_ "bold" ] [ text "1" ]
        , mn_ [] [ text "3" ]
        ]
    ]

Attribute groups

For full semantics of each attribute consult the MDN MathML attribute reference.

See also

Synopsis

Global attributes

dir_ :: MisoString -> Attribute action Source #

dir

Since: 1.9.0.0

scriptlevel_ :: Int -> Attribute action Source #

scriptlevel

Since: 1.9.0.0

Regular attributes

accent_ :: Bool -> Attribute action Source #

Since: 1.9.0.0

accentunder_ :: Bool -> Attribute action Source #

Since: 1.9.0.0

align_ :: Bool -> Attribute action Source #

Since: 1.9.0.0

columnalign_ :: MisoString -> Attribute action Source #

Since: 1.9.0.0

columnlines_ :: MisoString -> Attribute action Source #

Since: 1.9.0.0

columnspacing_ :: MisoString -> Attribute action Source #

Since: 1.9.0.0

columnspan_ :: Int -> Attribute action Source #

Since: 1.9.0.0

depth_ :: MisoString -> Attribute action Source #

Since: 1.9.0.0

display_ :: MisoString -> Attribute action Source #

Since: 1.9.0.0

fence_ :: Bool -> Attribute action Source #

Since: 1.9.0.0

frame_ :: MisoString -> Attribute action Source #

Since: 1.9.0.0

framespacing_ :: MisoString -> Attribute action Source #

Since: 1.9.0.0

height_ :: MisoString -> Attribute action Source #

Since: 1.9.0.0

href_ :: MisoString -> Attribute action Source #

Since: 1.9.0.0

id_ :: MisoString -> Attribute action Source #

Since: 1.9.0.0

linethickness_ :: MisoString -> Attribute action Source #

Since: 1.9.0.0

lspace_ :: MisoString -> Attribute action Source #

Since: 1.9.0.0

mathbackground_ :: MisoString -> Attribute action Source #

Since: 1.9.0.0

mathcolor_ :: MisoString -> Attribute action Source #

Since: 1.9.0.0

mathsize_ :: MisoString -> Attribute action Source #

Since: 1.9.0.0

mathvariant_ :: MisoString -> Attribute action Source #

Since: 1.9.0.0

maxsize_ :: MisoString -> Attribute action Source #

Since: 1.9.0.0

minsize_ :: MisoString -> Attribute action Source #

Since: 1.9.0.0

movablelimits_ :: Bool -> Attribute action Source #

Since: 1.9.0.0

notation_ :: MisoString -> Attribute action Source #

Since: 1.9.0.0

rowalign_ :: MisoString -> Attribute action Source #

Since: 1.9.0.0

rowlines_ :: MisoString -> Attribute action Source #

Since: 1.9.0.0

rowspacing_ :: MisoString -> Attribute action Source #

Since: 1.9.0.0

rowspan_ :: Int -> Attribute action Source #

Since: 1.9.0.0

rspace_ :: MisoString -> Attribute action Source #

Since: 1.9.0.0

separator_ :: Bool -> Attribute action Source #

Since: 1.9.0.0

stretchy_ :: Bool -> Attribute action Source #

Since: 1.9.0.0

symmetric_ :: Bool -> Attribute action Source #

Since: 1.9.0.0

voffset_ :: MisoString -> Attribute action Source #

Since: 1.9.0.0

width_ :: MisoString -> Attribute action Source #

Since: 1.9.0.0

close_ :: MisoString -> Attribute action Source #

Since: 1.9.0.0

open_ :: MisoString -> Attribute action Source #

Since: 1.9.0.0