1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
//! The stylesheet half of a meter: a proportion, drawn as a bar.
//!
//! The markup is drawn by the quasi hosts (`quasi-webview` for this renderer),
//! which own the vocabulary member. This module owns the trough and fill classes
//! that markup carries and the rules that draw them. The trough was phase A
//! before anything could describe one: an app drawing its own bar keeps these
//! classes.
//!
//! # Neither number is divided in markup
//!
//! `--meter-done` and `--meter-total` reach the markup as themselves and
//! `progress_rules` does the arithmetic. That is the property the residual seam
//! needs, and [`chart`](crate::chart) states the reasoning in full: a residual
//! is derived once from stand-in values, so a number WORKED OUT from two of them
//! is not a stand-in any filler can find, and one request's percentage bakes
//! into the template. A number handed over whole stays a hole.
//!
//! A bar that is full because it landed exactly and a bar that is full because
//! it ran over are the same width and are not the same fact. With both integers
//! in the markup the comparison is there to be read, and a stylesheet that wants
//! to react can make it where it uses it, so no `data-over` flag is emitted.
//! What an over-run should look like stays app taste: goingson says it with the
//! danger tone, and a renderer that picked a stripe for everyone would be
//! decorating rather than describing.
use crate::;
use ;
use Write as _;
/// Every class a meter's markup can carry.
///
/// [`crate::facet::FACET_CLASSES`]' obligation. Both carry rules, so the
/// scraped vocabulary already holds them; the list is what keeps that true if
/// a rule goes away.
pub const METER_CLASSES: & = &;
/// The progress trough these rules fill.
///
/// The rules stay a superset of what a description can ask for. An app drawing
/// its own bar keeps these classes, which is what the four goingson grew
/// independently were adopted onto.
///
/// The trough is a [`Depth::Well`], the same reading a text field gets:
/// something with its content down inside it.
pub