about summary refs log tree commit diff stats
path: root/test/layout/nested-inline-block.expected
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-11-09 16:33:14 +0100
committerbptato <nincsnevem662@gmail.com>2024-11-09 16:34:34 +0100
commit485a628f0c58f89c7260c710bf3accf5bc2e8fff (patch)
treef127f78eb45a3353edf071e69157d22878d3f00e /test/layout/nested-inline-block.expected
parent63abe1308be087f0658186a303fe9e6843d2166a (diff)
downloadchawan-485a628f0c58f89c7260c710bf3accf5bc2e8fff.tar.gz
layout: adjust fixed positioning
In CSS, `position: fixed' either a) moves the box on scroll (with
`@media screen'), or b) repeats the box on every page (with
`@media print').

a) would completely mess up our document model, and even if it didn't,
the renderer couldn't handle a redraw on every single scroll.
b) sounds better, but still doesn't work because it's incompatible with
`@media screen' semantics. e.g. in a) I can read text despite any banner
on the bottom of the screen, because the box moves when I scroll, but
in b), the same box will obscure some text on every single page.

So instead, make the `position: fixed' containing box
width: max(:root.width, 100vw); height: max(:root.height, 100vh)).
This is completely non-standard, but at least both TOC-like fixed boxes
*and* banners are placed somewhere that makes some sense.
Diffstat (limited to 'test/layout/nested-inline-block.expected')
0 files changed, 0 insertions, 0 deletions
'>132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218