package toffee
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=9e4e90d17f9b2af1b07071fe425bc2c519c849c4f1d1ab73cde512be2d874849
sha512=06e9c4a741590942e81a27738d0b5c0413fafec8cf3b7dae047ad69f155e7b718aa4223818dc161b7d028efffcfd3365905e264d6fd31d453910ddfa91dcf9b9
doc/toffee.geometry/Geometry/Abstract_axis/index.html
Module Geometry.Abstract_axisSource
CSS abstract axis types and operations.
The abstract axis system is defined by the CSS Writing Modes specification (<https://www.w3.org/TR/css-writing-modes-3/#abstract-axes>). Abstract axes describe layout directions independent of physical screen orientation, allowing for different writing modes and text directions.
Currently, toffee assumes horizontal writing mode (Inline = Horizontal, Block = Vertical). Future support for vertical writing modes will affect the mapping to absolute axes.
Abstract axis direction.
Inline represents the axis in the inline dimension (horizontal in horizontal writing modes, vertical in vertical writing modes).
Block represents the axis in the block dimension (vertical in horizontal writing modes, horizontal in vertical writing modes).
other axis returns the perpendicular axis.
If axis is Inline, returns Block. If axis is Block, returns Inline.
to_absolute_naive axis converts to an absolute axis assuming horizontal writing mode.
This conversion assumes Inline maps to Horizontal and Block maps to Vertical. This assumption holds for all current layouts but will change if toffee implements the writing_mode CSS property in the future.
Returns Absolute_axis.Horizontal for Inline and Absolute_axis.Vertical for Block.