Skip to main content

Module list

Module list 

Source
Expand description

The classes a list’s or a table’s columns, rows and cells carry.

The row and cell markup is drawn by the quasi hosts (quasi-webview for this renderer), which own the column and cell members of the vocabulary. What stays here is the naming those hosts write into markup and the generated stylesheet rules: a column’s name as a class (push_column_name), the kind, part and flow classes, the cell wrapper (CELL_IN) and sizer (push_sizer), the short-N ladder (SHORT_RUNGS), and the class lists the vocabulary is checked against.

§Why positions are the bug

goingson hid its mobile columns with nth-child(n+5) against a seven-column table, plus a separate nth-child(3), plus two class-based rules, the same fact said three ways, two of them positional. Insert a column anywhere left of the cut and the wrong one disappears, silently, because nothing in the stylesheet knows what column five is. Priority is the fix: a renderer narrows by what a column is worth, as a shrink factor on the column’s own class (one of CELL_DROP_CLASSES), and never by counting.

Constants§

CELL_DROP_CLASSES
Every class saying when a cell of a column drops, including the tier that never does.
CELL_IN
The wrapper every cell and heading holds its contents in.
CELL_PART_CLASSES
Every class cell_part_class can return, including the fallback.
CELL_SIZER
What a kept column is as wide as, when its floor cannot say.
CELL_WIDTH_CLASSES
Every class saying how wide a cell of a column asks to be, including the fill a column that makes no claim lands on.
FLOW_CLASSES
Every class flow_class can return.
KIND_CLASSES
Every class kind_class can return.
NESTING_CLASSES
The classes a row inside a hierarchy carries.
ROW_PART_CLASSES
Every class part_class can return, including the fallback.
SHORT_RUNGS
The rungs of the short-N ladder, in rem: the narrowest and widest table width it can say, and the step between two.

Functions§

cell_part_class
The class for a cell part.
flow_class
The class for a part’s flow, if it needs one.
kind_class
The class saying what a column holds, or None for prose.
part_class
The class for a row part.
push_column_name
A column’s name as the identifier half of its class.
push_sizer
A CELL_SIZER around copies, which go inside a cell’s or a heading’s CELL_IN after what it holds.