Explorar o código

Add a browser compatibility ladder and CSS layout fixes

Johannes Zellner hai 1 semana
pai
achega
83b7c0adab
Modificáronse 37 ficheiros con 2472 adicións e 266 borrados
  1. 50 32
      AGENTS.md
  2. 8 1
      Makefile
  3. 614 124
      browser.c
  4. 716 101
      browser_html.c
  5. 31 6
      browser_html.h
  6. 2 0
      docs/development.html
  7. 11 2
      docs/userland.html
  8. 17 0
      testdata/browser/compat/001-cascade.html
  9. 17 0
      testdata/browser/compat/002-inline.html
  10. 19 0
      testdata/browser/compat/003-lists.html
  11. 21 0
      testdata/browser/compat/004-float-row.html
  12. 20 0
      testdata/browser/compat/005-table.html
  13. 21 0
      testdata/browser/compat/006-flex-grid.html
  14. 19 0
      testdata/browser/compat/007-absolute.html
  15. 15 0
      testdata/browser/compat/008-media.html
  16. 43 0
      testdata/browser/compat/010-block-width.html
  17. 41 0
      testdata/browser/compat/011-block-height.html
  18. 36 0
      testdata/browser/compat/012-auto-margin.html
  19. 36 0
      testdata/browser/compat/013-box-sizing.html
  20. 39 0
      testdata/browser/compat/014-em.html
  21. 42 0
      testdata/browser/compat/015-font-shorthand.html
  22. 44 0
      testdata/browser/compat/016-borders.html
  23. 45 0
      testdata/browser/compat/017-z-index.html
  24. 36 0
      testdata/browser/compat/018-relative.html
  25. 41 0
      testdata/browser/compat/019-right-bottom.html
  26. 43 0
      testdata/browser/compat/020-table-span.html
  27. 42 0
      testdata/browser/compat/021-table-percent.html
  28. 45 0
      testdata/browser/compat/022-flex-align.html
  29. 36 0
      testdata/browser/compat/023-calc.html
  30. 39 0
      testdata/browser/compat/024-nested-em.html
  31. 37 0
      testdata/browser/compat/025-nowrap.html
  32. 36 0
      testdata/browser/compat/026-transform.html
  33. 48 0
      testdata/browser/compat/027-sticky.html
  34. 36 0
      testdata/browser/compat/028-background-image.html
  35. 41 0
      testdata/browser/compat/029-float-percent.html
  36. 30 0
      testdata/browser/compat/README
  37. 55 0
      testdata/browser/compat/index.html

+ 50 - 32
AGENTS.md

@@ -78,6 +78,7 @@ make test-libc  # host tests for ring-3 malloc, stdio, math, div64 and setjmp
 make test-mujs  # host smoke test for the vendored MuJS engine
 make test-font  # host TrueType parser/rasterizer specimen test
 make test-font-asan  # ASan/UBSan variant
+make compat-serve  # serve the browser A/B ladder on port 8000
 make fonts      # regenerate fonts/*.ttf with pyftsubset + system fonts
 make clean
 ```
@@ -773,13 +774,21 @@ it to `0x7E00`.  The kernel region itself only has one wall (`_end` below
   the browser both use it.  `browser_html.c/h` is a tolerant HTML tree + the
   CSS subset: external `<link rel=stylesheet>` sheets (in document order,
   inline `<style>` last), tag/class/id and descendant/child selectors,
-  colours/`rgba()`, backgrounds, font size (`px`/`%`/`em`/`rem`), numeric
-  weights, `!important`, line-height, alignment, margins, padding, borders,
-  `list-style: none`, `text-transform: uppercase`, `display`, percentage
-  `width`/`height`/`max-width`, and basic `float: left/right` columns.
+  colours/`rgba()`, solid backgrounds and a stretched `background-image`,
+  font size (`px`/`%`/`em`/`rem`, resolved against the parent for `em`/`%`),
+  the `font` shorthand, numeric weights, `!important`, line-height,
+  alignment, margins, padding, per-side borders, `list-style: none`,
+  `text-transform: uppercase`, `display`, explicit/percentage block
+  `width`/`height` with `min`/`max` and `box-sizing: border-box`,
+  `margin: 0 auto`, `calc(percent ± px)`, `white-space: nowrap`,
+  `position: relative`/`absolute`/`fixed`/`sticky`, `right`/`bottom`,
+  `z-index`, `transform: translate`, flex rows with `justify-content`/
+  `align-items`, two-column grids, table colspan and percentage columns,
+  and basic `float: left/right` columns.
   `@media (min-width/max-width)` blocks are evaluated against the browser
   canvas width when the page is parsed; `@font-face`/`@import`/`@keyframes` are
-  skipped.  Inline
+  skipped.  The compatibility ladder is `testdata/browser/compat/`
+  (`make compat-serve`); pages 010–029 pass.  Inline
   `<svg>` subtrees and closed `<details>` are skipped (not renderable), and
   `<video>` gets a placeholder box.  The default page canvas follows
   `ngui_theme_dark` (dark page, light text, `theme.panel` for `<pre>`);
@@ -1462,35 +1471,44 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
     assigned to `innerHTML`, and `style`/`dataset` cover inline state rather
     than computed style.  Libraries that need those APIs (jQuery plugins
     beyond Bootstrap's tooltip, Angular apps that use `$http`) still log
-    errors even though the static page renders.  CSS also lacks
-    border-radius clipping of descendant content, gradients/box-shadow/
-    transitions (a gradient background falls back to its last solid colour),
-    or CSS `color-mix`.  CSS custom properties (`var()`), flex rows with
-    wrap/grow/gap, two-track and `repeat(auto-fit, minmax(...))` grids,
-    inline-block runs, basic proportional table columns and inline SVG
-    (`rect`, `line`, `path` with M/L/H/V, and `text`) are supported.
-    `position:fixed` boxes are deferred and painted above the flow;
-    `position:sticky` is treated as static.  `prefers-color-scheme` media
-    queries are ignored so the page's base palette is used.  `width`/
-    `max-width` are not applied to block flow (they collapsed nested
-    percentage columns); flex/grid items still use them.  Float support is
-    the basic Bootstrap-grid case: consecutive floated blocks are laid side
-    by side with percentage/px widths, left floats pack from the row's left
-    edge and right floats from its right edge, inline floats are blockified
-    (Bootstrap floats the navbar brand and its text links), there is no
-    `clear`, percentage margins are approximated as pixels, and a float
-    without a width uses a text-width estimate.  `@media` width
+    errors even though the static page renders.  CSS also lacks table
+    `rowspan`, text wrap around floats and a real `clear` (the row-based
+    float model puts following blocks below the row), percentage margins/
+    padding (still resolved against the viewport), `@font-face`,
+    `background-repeat`/`position`/`size` (a background image is stretched
+    to its box), the rest of `transform` (`translate` only), sticky beyond
+    the top edge, border-radius clipping of descendant content, gradients/
+    box-shadow/transitions (a gradient background falls back to its last
+    solid colour), or CSS `color-mix`.  CSS custom properties (`var()`),
+    flex rows with wrap/grow/gap/justify/align, two-track and
+    `repeat(auto-fit, minmax(...))` grids, inline-block runs, basic
+    proportional table columns, table colspan/percentage columns and inline
+    SVG (`rect`, `line`, `path` with M/L/H/V, and `text`) are supported.
+    `position:fixed`/`absolute` boxes are deferred and painted above the
+    flow; `z-index` sorts that deferred list; `position:relative` shifts
+    painting without moving flow, and `position:sticky` clamps against the
+    top edge (no bottom/container clamping).  `prefers-color-scheme` media
+    queries are ignored so the page's base palette is used.  Block
+    `width`/`max-width`/`min-width`, content-box `height` with `min`/`max`,
+    `box-sizing: border-box`, `margin: 0 auto` and `calc(percent ± px)` work;
+    percentage widths resolve against the containing block.  Float support
+    is the basic Bootstrap-grid case: consecutive floated blocks are laid
+    side by side with percentage/px widths, left floats pack from the row's
+    left edge and right floats from its right edge, inline floats are
+    blockified (Bootstrap floats the navbar brand and its text links), there
+    is no `clear`, percentage margins are approximated as pixels, and a
+    float without a width uses a text-width estimate.  `@media` width
     blocks are evaluated against the canvas width at page-parse time, so a
     window resize does not re-evaluate them until the next load, and
-    pseudo-classes are never matched.  `font-size` now maps to real pixel
-    sizes (8..48), `font-weight` selects the bold face, `font-style: italic`
-    selects the italic face, `font-family: monospace` selects Liberation Mono,
-    and `em`/`rem` use a 16 px root.  Text is Latin-1 only (non-Latin-1
-    characters become `?`); there is no shaping, bidi, `@font-face` or
-    full-Unicode fallback.
-    Pages that need flex alignment/justification, multi-row grid templates
-    or CSS variables inside `calc()`/`color-mix()` can still lay out
-    imperfectly.  Images are decoded into a per-image `img_estimate()`-sized
+    pseudo-classes are never matched.  `font-size` maps to real pixel sizes
+    (8..48), `font-weight` selects the bold face, `font-style: italic`
+    selects the italic face, `font-family: monospace` selects Liberation
+    Mono, and nested `em`/`%` font sizes and `em`/`rem` widths resolve
+    against the parent/root; margin/padding `em` is still root-based.  Text
+    is Latin-1 only (non-Latin-1 characters become `?`); there is no shaping,
+    bidi, `@font-face` or full-Unicode fallback.
+    Pages that need multi-row grid templates, `color-mix()` or full
+    transforms can still lay out imperfectly.  Images are decoded into a per-image `img_estimate()`-sized
     arena that is freed after the 1000 px display bitmap is made (16 images,
     512 KB files / 8 MP decodes); a large image-heavy page can still exhaust
     the 32 MB heap because the scaled bitmaps live until navigation, and the

+ 8 - 1
Makefile

@@ -66,7 +66,7 @@ EFI_LDFLAGS = -nostdlib -Wl,--subsystem,10 -Wl,-e,efi_main \
               -Wl,--image-base,0x0 -Wl,--dynamicbase \
               -Wl,--enable-reloc-section -Wl,--no-insert-timestamp
 
-.PHONY: all clean run run-smp run-floppy run-usb run-uhci run-ehci run-ehci-asix run-xhci run-xhci-asix run-net run-e1000 run-ahci test-usb run-serial floppy usb uefi run-uefi test-uefi flash dev net-dev cmds-dev net-cmds browser-dev gallery-dev netmon monitor test-crypto test-images test-images-asan test-libc test-font test-font-asan fonts kernel-dev kernel-net-dev rootfs
+.PHONY: all clean run run-smp run-floppy run-usb run-uhci run-ehci run-ehci-asix run-xhci run-xhci-asix run-net run-e1000 run-ahci test-usb run-serial floppy usb uefi run-uefi test-uefi flash dev net-dev cmds-dev net-cmds browser-dev gallery-dev compat-serve netmon monitor test-crypto test-images test-images-asan test-libc test-font test-font-asan fonts kernel-dev kernel-net-dev rootfs
 
 all: floppy.img usb.img final.bin root.img
 
@@ -1138,6 +1138,13 @@ gallery-dev: gallery.elf
 	@echo "Uploading gallery.elf to http://$(BOARD_IP):8080/share/GALLERY..."
 	curl -f -T gallery.elf http://$(BOARD_IP):8080/share/GALLERY
 
+# Browser compatibility ladder: serve testdata/browser/compat so the board
+# or a QEMU guest can open http://<host>:$(COMPAT_PORT)/.
+COMPAT_PORT ?= 8000
+compat-serve:
+	@echo "Serving the browser compatibility ladder on port $(COMPAT_PORT)"
+	python3 -m http.server -d testdata/browser/compat $(COMPAT_PORT)
+
 # Show the board's netlog stream (kernel debug + terminal text) like `make
 # monitor` does over serial.
 netmon: netmonitor

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 614 - 124
browser.c


A diferenza do arquivo foi suprimida porque é demasiado grande
+ 716 - 101
browser_html.c


+ 31 - 6
browser_html.h

@@ -85,9 +85,12 @@ enum br_tag {
 struct br_style {
 	unsigned short color;
 	unsigned short bg;
-	unsigned short border_color;
+	unsigned short border_c[4]; /* top, right, bottom, left */
+	unsigned short bg_image;    /* 1-based background URL, 0 none */
 	unsigned char has_bg;
 	unsigned char font_px;      /* 8..48 */
+	unsigned short font_raw;    /* font-size before unit resolution */
+	unsigned char font_unit;    /* 0 inherited, 1 px, 2 em, 3 rem, 4 % */
 	unsigned char bold;
 	unsigned char italic;
 	unsigned char mono;
@@ -99,25 +102,43 @@ struct br_style {
 	unsigned char flex_grow;    /* flex-grow, 0..100 */
 	unsigned char flex_col;     /* flex-direction: column */
 	unsigned char flex_wrap;    /* flex-wrap: wrap */
+	unsigned char justify;      /* 0 start, 1 center, 2 end, 3 between, 4 around */
+	unsigned char align_items;  /* 0 start/stretch, 1 center, 2 end */
 	unsigned char grid_ncols;   /* 1 or 2 supported */
 	unsigned char grid_gap;     /* px */
 	unsigned char grid_slot;    /* 0 auto, 1 full, 2 left, 3 right */
 	unsigned char grid_auto;    /* repeat(auto-fit, minmax(width, 1fr)) */
-	unsigned char pos;          /* 0 static, 1 absolute, 2 fixed */
-	unsigned char left_set, top_set;
-	signed short left, top;
+	unsigned char pos;          /* 0 static, 1 absolute, 2 fixed, 3 relative */
+	unsigned char left_set, top_set, right_set, bottom_set;
+	signed short left, top, right, bottom;
+	signed short z_index;
+	unsigned char z_set;
+	signed short tx, ty;
+	unsigned char transform_set;
 	unsigned char no_bullet;    /* list-style: none (inherited) */
+	unsigned char list_item;    /* li marker is drawn */
+	unsigned char nowrap;       /* white-space: nowrap (inherited) */
 	unsigned char uppercase;    /* text-transform: uppercase (inherited) */
-	unsigned char border_w;
+	unsigned char border_w[4];  /* top, right, bottom, left */
 	/* border-radius in pixels, one entry per corner: TL, TR, BR, BL.
 	 * Percentages are stored as 255 so they clamp to the box half. */
 	unsigned char radius[4];
-	unsigned char width_kind;   /* 0 none, 1 px, 2 percent */
+	unsigned char width_kind;   /* 0 none, 1 px, 2 percent, 3 calc */
 	unsigned short width;
+	signed short width_calc_pct;
+	signed short width_calc_px;
 	unsigned char max_width_kind;
 	unsigned short max_width;
+	unsigned char min_width_kind;
+	unsigned short min_width;
 	unsigned char height_kind;
 	unsigned short height;
+	unsigned char min_height_kind;
+	unsigned short min_height;
+	unsigned char max_height_kind;
+	unsigned short max_height;
+	unsigned char box_sizing;   /* 0 content-box, 1 border-box */
+	unsigned char ml_auto, mr_auto;
 	unsigned char line_h_pct;   /* percent of font size, 0 = default */
 	unsigned short line_h_px;   /* absolute px, 0 = default */
 	signed short mt, mb, ml, mr;
@@ -150,6 +171,9 @@ struct br_node {
 	unsigned short height_attr;
 	unsigned char width_pct;
 	unsigned char height_pct;
+	unsigned char colspan;
+	unsigned char rowspan;
+	short bg_img_index;         /* -1 until loaded, -2 failed */
 	short img_index;            /* -1 until the image is loaded */
 	signed short svg_x, svg_y;  /* inline SVG x/y or line x1/y1 */
 	unsigned char svg_rx;       /* inline SVG rect corner radius */
@@ -239,6 +263,7 @@ int  br_tag_is_block(unsigned int tag);
 int  br_tag_is_void(unsigned int tag);
 const char *br_tag_name(unsigned int tag);
 unsigned int br_tag_from_name(const char *name);
+const char *br_bg_image_url(unsigned int idx);
 
 /* Runtime DOM helpers used by the JavaScript bindings.  br_find_id returns
  * node + 1 (0 means no match); br_text_content concatenates the subtree's

+ 2 - 0
docs/development.html

@@ -180,6 +180,7 @@
 					<tr><td><code>make test-libc</code></td><td>Host tests for the ring-3 malloc, stdio/float formatting, math, 64-bit division helpers and setjmp/longjmp.</td></tr>
 					<tr><td><code>make test-mujs</code></td><td>Host smoke test for the vendored MuJS engine: arithmetic, strings, Math, Date, JSON, exceptions and the run limit.</td></tr>
 					<tr><td><code>make test-font</code> / <code>test-font-asan</code></td><td>Host specimen test for the fixed-point TrueType parser/rasterizer and glyph cache, with an AddressSanitizer/UBSan variant.</td></tr>
+					<tr><td><code>make compat-serve</code></td><td>Serve the browser compatibility ladder from <code>testdata/browser/compat/</code> on port 8000 for the board or QEMU guest.</td></tr>
 					<tr><td><code>make fonts</code></td><td>Regenerate the checked-in Arimo/Liberation Mono subsets with <code>pyftsubset</code>.</td></tr>
 				</tbody>
 			</table>
@@ -264,6 +265,7 @@ make net-cmds                   # replace /ramfs only</code></pre>
 			<li><strong>Crypto.</strong> <code>make test-crypto</code> runs host vectors for the freestanding crypto code.</li>
 			<li><strong>Ring-3 libc.</strong> <code>make test-libc</code> runs the malloc stress test (32 MB simulated arena with poisoned pages), exact <code>snprintf</code> float/string checks against the host, x87 math values, the 64-bit division helpers and a 32-bit setjmp/longjmp test.</li>
 			<li><strong>Fonts.</strong> <code>make test-font</code> parses the checked-in Arimo subset on the host, measures Latin-1 text, renders composites (for example <code>Äé</code>) and writes a specimen PPM. The browser must also be exercised across a navigation to verify detach/reattach around <code>heap_reset()</code>.</li>
+			<li><strong>Browser compatibility.</strong> <code>make compat-serve</code> serves the numbered A/B ladder in <code>testdata/browser/compat/</code>. Open the index on the board (or at <code>http://10.0.2.2:8000/</code> from a QEMU guest with user networking) and compare each pair; the index table records the current status.</li>
 			<li><strong>UEFI.</strong> <code>make test-uefi</code> boots the dual image under OVMF headless and greps the serial log for the boot line.</li>
 			<li><strong>Compositor stats.</strong> The ring-3 WM overwrites <code>/share/wmstats</code> every two seconds with <code>frames</code>, total and worst compositing time in milliseconds, and the pixels drawn in the interval. Read it in a terminal or fetch it over WebDAV to measure a target.</li>
 		</ul>

+ 11 - 2
docs/userland.html

@@ -356,11 +356,11 @@
 			drawing and scrolling.
 		</p>
 		<ul>
-			<li><strong>HTML/CSS subset.</strong> External and inline stylesheets, tag/class/id and descendant/child selectors, colours, backgrounds, real <code>font-size</code> (8–48 px), bold/italic faces, <code>font-family: monospace</code>, margins, padding, borders, alignment, percentage widths, basic floats and <code>@media</code> blocks evaluated at the browser canvas width when the page is parsed. Text is Latin-1; there is no shaping, bidi or <code>@font-face</code> yet.</li>
+			<li><strong>HTML/CSS subset.</strong> External and inline stylesheets, tag/class/id and descendant/child selectors, colours, backgrounds (solid and a stretched <code>background-image</code>), real <code>font-size</code> (8–48 px), the <code>font</code> shorthand, bold/italic faces, <code>font-family: monospace</code>, margins, padding, per-side borders, alignment, explicit/percentage block widths with <code>min-width</code>/<code>max-width</code>/<code>min-height</code>/<code>max-height</code>, <code>box-sizing: border-box</code>, <code>margin: 0 auto</code>, nested <code>em</code>/<code>rem</code> sizes, basic floats, <code>position: relative</code>/<code>absolute</code>/<code>fixed</code>/<code>sticky</code>, <code>right</code>/<code>bottom</code>, <code>z-index</code>, <code>transform: translate</code>, flex rows with grow/wrap/justify/align, two-column grids, table colspan and percentage columns, <code>calc(percent ± px)</code> widths, <code>white-space: nowrap</code> and <code>@media</code> blocks evaluated at the browser canvas width when the page is parsed. Text is Latin-1; there is no shaping, bidi or <code>@font-face</code> yet.</li>
 			<li><strong>JavaScript.</strong> Inline and external <code>&lt;script src&gt;</code> blocks run on the vendored MuJS engine in document order. External scripts use the same local/network fetch path as pages and CSS (512 KB cap) and are cached under <code>/share/bjs-*</code> for the current boot; the parsed page is painted before scripts run. Classic scripts are sloppy by default, and the engine carries Annex B fixes for regex literals after control parentheses and identity escapes/braces. Math, Date and JSON are the engine's; each page gets one state, and an 8M-instruction limit turns a runaway loop into a <code>script ran too long</code> error instead of freezing the browser.</li>
 			<li><strong>DOM.</strong> Nodes are interned MuJS userdata wrappers, so <code>===</code> and library expando caches behave. Elements support <code>getAttribute</code>/<code>setAttribute</code>/<code>hasAttribute</code>, <code>appendChild</code>/<code>insertBefore</code>/<code>removeChild</code>/<code>replaceChild</code>/<code>cloneNode</code>/<code>remove</code>, <code>querySelector(All)</code>, <code>getElementsByTagName</code>, <code>getElementsByClassName</code>, <code>classList</code>, <code>dataset</code>, inline <code>style</code> (<code>cssText</code>, property get/set, <code>getPropertyValue</code>/<code>setProperty</code>/<code>removeProperty</code>), <code>innerHTML</code> (fragment parser), <code>textContent</code>/<code>nodeValue</code>, traversal and <code>matches</code>. <code>&lt;a&gt;</code> elements expose <code>href</code>/<code>protocol</code>/<code>host</code>/<code>hostname</code>/<code>port</code>/<code>pathname</code>/<code>search</code>/<code>hash</code>/<code>origin</code> resolved against the page URL. <code>document</code> has <code>createElement</code>, <code>createTextNode</code>, <code>createComment</code>, <code>createDocumentFragment</code>, <code>createAttribute</code>, <code>documentElement</code>/<code>body</code>/<code>head</code> and <code>readyState</code>; <code>navigator</code>, <code>history</code>, <code>matchMedia</code>, <code>getComputedStyle</code>, <code>setTimeout</code>/<code>setInterval</code>/<code>clearTimeout</code> and <code>requestAnimationFrame</code> exist, and due timers are pumped from the browser loop. jQuery 1.11, Bootstrap 3.2 tooltips and AngularJS 1.3 (with ngRoute/ngSanitize) initialize on a local test page.</li>
 			<li><strong>Not supported.</strong> Event dispatch (<code>addEventListener</code> is a no-op), forms, <code>type="module"</code>, <code>defer</code>/<code>async</code>, <code>MutationObserver</code>/<code>IntersectionObserver</code>, <code>XMLHttpRequest</code>/<code>fetch</code>, <code>DOMParser</code>, canvas/2D contexts and pseudo-class/element selectors. <code>getComputedStyle</code> is a stub; <code>outerHTML</code> only returns the string last assigned to <code>innerHTML</code>.</li>
-			<li><strong>CSS gaps.</strong> Pseudo-classes, border-radius clipping of descendants, gradients/box-shadow/transitions and <code>color-mix</code>. Flex rows, card grids, basic tables, inline SVG and CSS variables are supported.</li>
+			<li><strong>CSS gaps.</strong> Table <code>rowspan</code>, text wrapping around floats and real <code>clear</code>, <code>@font-face</code>, percentage margins/padding (still resolved against the viewport), <code>background-repeat</code>/<code>position</code>/<code>size</code> (a background image is stretched to its box), the rest of <code>transform</code> (only <code>translate</code>), sticky beyond the top edge, pseudo-classes/elements, border-radius clipping of descendants, gradients/box-shadow/transitions and <code>color-mix</code>. Flex rows, card grids, basic tables, inline SVG and CSS variables are supported.</li>
 			<li><strong>Caps.</strong> 2 MB page body, 832 KB CSS, 6144 DOM nodes, 4608 rules, 16 images. Each image gets an <code>img_estimate()</code>-sized decode arena that is freed after the scaled bitmap is made; navigation calls <code>heap_reset()</code> and unmaps the page heap.</li>
 			<li><strong>Fetching.</strong> Each network fetch starts a one-shot helper process and a fresh TCP/TLS connection; images load one per loop within the viewport plus 160 px.</li>
 			<li><strong>URL entry.</strong> A dotted name without a scheme that is not a known local file extension is treated as a hostname, so <code>cloudron.io</code> does not hit the local-file stat. Origin-level redirects (the common <code>http://host</code> → <code>https://host</code> → <code>https://www.host</code> chain) are cached per process and in <code>/share/borigins</code>; the first visit still follows them, later visits go straight to the canonical origin. Remote stylesheets are cached under <code>/share/bcss-*</code> for the current boot, so a reload or a fresh browser launch skips the CSS downloads.</li>
@@ -372,6 +372,15 @@
 			unaffected. See <a href="graphics.html#images">Graphics → Image
 			library</a> for the decoder limits.
 		</p>
+		<p>
+			<code>testdata/browser/compat/</code> is the browser compatibility
+			ladder: numbered, self-contained pages with an A/B pair for each
+			behaviour. Run <code>make compat-serve</code> and open
+			<code>http://&lt;host&gt;:8000/</code> on the board (or
+			<code>http://10.0.2.2:8000/</code> in QEMU's user network). The
+			index records the current pass/fail status; pages 010–029 pass, while
+			the README lists the remaining gaps.
+		</p>
 	</section>
 
 	<section id="sources">

+ 17 - 0
testdata/browser/compat/001-cascade.html

@@ -0,0 +1,17 @@
+<!doctype html>
+<html><head><meta charset="utf-8"><title>001 cascade</title>
+<style>
+html,body{margin:0;padding:0;background:#fff;color:#202020;font-family:sans-serif;font-size:13px}
+h1{font-size:20px;margin:10px 0 4px 10px}p{margin:0 0 10px 10px}
+.pane{float:left;width:440px;margin-left:10px}.label{background:#eee;padding:4px 6px;margin-bottom:4px}
+.stage{background:#fff;padding:8px;border:1px solid #999}
+.box{height:60px;background:#2244cc}
+#target{background:#cc3333}
+</style></head><body>
+<h1>001 &middot; cascade</h1>
+<p>Both boxes must be red: the id rule beats the class rule.</p>
+<div class="pane"><div class="label">A: class + id</div><div class="stage">
+<div id="target" class="box special" style="height:60px"></div></div></div>
+<div class="pane"><div class="label">B: inline reference</div><div class="stage">
+<div style="height:60px;background:#cc3333"></div></div></div>
+</body></html>

+ 17 - 0
testdata/browser/compat/002-inline.html

@@ -0,0 +1,17 @@
+<!doctype html>
+<html><head><meta charset="utf-8"><title>002 inline</title>
+<style>
+html,body{margin:0;padding:0;background:#fff;color:#202020;font-family:sans-serif;font-size:13px}
+h1{font-size:20px;margin:10px 0 4px 10px}p{margin:0 0 10px 10px}
+.pane{float:left;width:440px;margin-left:10px}.label{background:#eee;padding:4px 6px;margin-bottom:4px}
+.stage{background:#fff;padding:8px;border:1px solid #999}
+</style></head><body>
+<h1>002 &middot; inline formatting</h1>
+<p>The two lines must look identical.</p>
+<div class="pane"><div class="label">A: b / i / u</div><div class="stage">
+Normal <b>bold</b> <i>italic</i> <u>underlined</u> and <b><i>both</i></b>.
+</div></div>
+<div class="pane"><div class="label">B: inline styles</div><div class="stage">
+Normal <span style="font-weight:bold">bold</span> <span style="font-style:italic">italic</span> <span style="text-decoration:underline">underlined</span> and <span style="font-weight:bold;font-style:italic">both</span>.
+</div></div>
+</body></html>

+ 19 - 0
testdata/browser/compat/003-lists.html

@@ -0,0 +1,19 @@
+<!doctype html>
+<html><head><meta charset="utf-8"><title>003 lists</title>
+<style>
+html,body{margin:0;padding:0;background:#fff;color:#202020;font-family:sans-serif;font-size:13px}
+h1{font-size:20px;margin:10px 0 4px 10px}p{margin:0 0 10px 10px}
+.pane{float:left;width:440px;margin-left:10px}.label{background:#eee;padding:4px 6px;margin-bottom:4px}
+.stage{background:#fff;padding:8px;border:1px solid #999}
+</style></head><body>
+<h1>003 &middot; lists</h1>
+<p>Both panes must show a bulleted list and a numbered list.</p>
+<div class="pane"><div class="label">A: nested</div><div class="stage">
+<ul><li>one</li><li>two<ul><li>two a</li><li>two b</li></ul></li></ul>
+<ol><li>first</li><li>second</li><li>third</li></ol>
+</div></div>
+<div class="pane"><div class="label">B: flat</div><div class="stage">
+<ul><li>one</li><li>two</li></ul>
+<ol><li>first</li><li>second</li><li>third</li></ol>
+</div></div>
+</body></html>

+ 21 - 0
testdata/browser/compat/004-float-row.html

@@ -0,0 +1,21 @@
+<!doctype html>
+<html><head><meta charset="utf-8"><title>004 float row</title>
+<style>
+html,body{margin:0;padding:0;background:#fff;color:#202020;font-family:sans-serif;font-size:13px}
+h1{font-size:20px;margin:10px 0 4px 10px}p{margin:0 0 10px 10px}
+.pane{float:left;width:440px;margin-left:10px}.label{background:#eee;padding:4px 6px;margin-bottom:4px}
+.stage{background:#fff;padding:8px;border:1px solid #999}
+.red{background:#cc3333}.green{background:#22aa44}.after{background:#333;color:#fff;height:24px;margin-top:8px;padding-left:4px}
+</style></head><body>
+<h1>004 &middot; float row</h1>
+<p>Two 150 px columns side by side, with the bar below.</p>
+<div class="pane"><div class="label">A: floats</div><div class="stage">
+<div class="red" style="float:left;width:150px;height:50px"></div>
+<div class="green" style="float:right;width:150px;height:50px"></div>
+<div class="after">after</div>
+</div></div>
+<div class="pane"><div class="label">B: table</div><div class="stage">
+<table style="width:100%"><tr><td style="width:50%" class="red" height="50"></td><td style="width:50%" class="green" height="50"></td></tr></table>
+<div class="after">after</div>
+</div></div>
+</body></html>

+ 20 - 0
testdata/browser/compat/005-table.html

@@ -0,0 +1,20 @@
+<!doctype html>
+<html><head><meta charset="utf-8"><title>005 table</title>
+<style>
+html,body{margin:0;padding:0;background:#fff;color:#202020;font-family:sans-serif;font-size:13px}
+h1{font-size:20px;margin:10px 0 4px 10px}p{margin:0 0 10px 10px}
+.pane{float:left;width:440px;margin-left:10px}.label{background:#eee;padding:4px 6px;margin-bottom:4px}
+.stage{background:#fff;padding:8px;border:1px solid #999}
+td{padding:6px;border:1px solid #999}.head{background:#eee;font-weight:bold}
+</style></head><body>
+<h1>005 &middot; table</h1>
+<p>Both panes must show the same 3 x 2 table.</p>
+<div class="pane"><div class="label">A: table</div><div class="stage">
+<table style="width:360px"><tr class="head"><td>Name</td><td>Value</td><td>Note</td></tr>
+<tr><td>alpha</td><td>1</td><td>first</td></tr><tr><td>beta</td><td>2</td><td>second</td></tr></table>
+</div></div>
+<div class="pane"><div class="label">B: table reference</div><div class="stage">
+<table style="width:360px"><tr class="head"><td>Name</td><td>Value</td><td>Note</td></tr>
+<tr><td>alpha</td><td>1</td><td>first</td></tr><tr><td>beta</td><td>2</td><td>second</td></tr></table>
+</div></div>
+</body></html>

+ 21 - 0
testdata/browser/compat/006-flex-grid.html

@@ -0,0 +1,21 @@
+<!doctype html>
+<html><head><meta charset="utf-8"><title>006 flex and grid</title>
+<style>
+html,body{margin:0;padding:0;background:#fff;color:#202020;font-family:sans-serif;font-size:13px}
+h1{font-size:20px;margin:10px 0 4px 10px}p{margin:0 0 10px 10px}
+.pane{float:left;width:440px;margin-left:10px}.label{background:#eee;padding:4px 6px;margin-bottom:4px}
+.stage{background:#fff;padding:8px;border:1px solid #999}
+.flex{display:flex;width:400px;height:60px}.f1{background:#cc3333;flex-grow:1}.f2{background:#22aa44;flex-grow:2}.f3{background:#2244cc;flex-grow:1}
+.grid{display:grid;grid-template-columns:100px 200px;gap:10px;margin-top:10px}.g{height:40px;background:#cccccc}
+</style></head><body>
+<h1>006 &middot; flex and grid</h1>
+<p>Flex items must grow 1:2:1; the grid must have two columns.</p>
+<div class="pane"><div class="label">A: flex + grid</div><div class="stage">
+<div class="flex"><div class="f1"></div><div class="f2"></div><div class="f3"></div></div>
+<div class="grid"><div class="g"></div><div class="g"></div></div>
+</div></div>
+<div class="pane"><div class="label">B: float reference</div><div class="stage">
+<div style="width:400px;height:60px"><div class="f1" style="float:left;width:100px;height:60px"></div><div class="f2" style="float:left;width:200px;height:60px"></div><div class="f3" style="float:left;width:100px;height:60px"></div></div>
+<div style="width:400px;margin-top:10px"><div class="g" style="float:left;width:100px"></div><div class="g" style="float:left;width:200px;margin-left:10px"></div></div>
+</div></div>
+</body></html>

+ 19 - 0
testdata/browser/compat/007-absolute.html

@@ -0,0 +1,19 @@
+<!doctype html>
+<html><head><meta charset="utf-8"><title>007 absolute</title>
+<style>
+html,body{margin:0;padding:0;background:#fff;color:#202020;font-family:sans-serif;font-size:13px}
+h1{font-size:20px;margin:10px 0 4px 10px}p{margin:0 0 10px 10px}
+.pane{float:left;width:440px;margin-left:10px}.label{background:#eee;padding:4px 6px;margin-bottom:4px}
+.stage{background:#fff;padding:8px;border:1px solid #999}
+.cover{width:200px;height:100px;background:#eee}
+.box{position:absolute;width:50px;height:40px}
+</style></head><body>
+<h1>007 &middot; absolute positioning</h1>
+<p>Both panes must show the red box at 20,10 and the blue box at 120,50.</p>
+<div class="pane"><div class="label">A: absolute</div><div class="stage">
+<div class="cover"><div class="box" style="left:20px;top:10px;background:#cc3333"></div><div class="box" style="left:120px;top:50px;background:#2244cc"></div></div>
+</div></div>
+<div class="pane"><div class="label">B: margins</div><div class="stage">
+<div class="cover" style="position:relative"><div class="box" style="position:static;margin-left:20px;margin-top:10px;background:#cc3333"></div><div class="box" style="position:static;margin-left:120px;margin-top:0;background:#2244cc"></div></div>
+</div></div>
+</body></html>

+ 15 - 0
testdata/browser/compat/008-media.html

@@ -0,0 +1,15 @@
+<!doctype html>
+<html><head><meta charset="utf-8"><title>008 media queries</title>
+<style>
+html,body{margin:0;padding:0;background:#fff;color:#202020;font-family:sans-serif;font-size:13px}
+h1{font-size:20px;margin:10px 0 4px 10px}p{margin:0 0 10px 10px}
+.pane{float:left;width:440px;margin-left:10px}.label{background:#eee;padding:4px 6px;margin-bottom:4px}
+.stage{background:#fff;padding:8px;border:1px solid #999}
+.box{height:80px;background:#2244cc}
+@media (min-width: 800px) { .box { background: #cc3333; } }
+</style></head><body>
+<h1>008 &middot; @media</h1>
+<p>On the normal 960+ px browser canvas the box must be red; below 800 px it is blue.</p>
+<div class="pane"><div class="label">A: @media (min-width: 800px)</div><div class="stage"><div class="box"></div></div></div>
+<div class="pane"><div class="label">B: no media</div><div class="stage"><div class="box" style="background:#cc3333"></div></div></div>
+</body></html>

+ 43 - 0
testdata/browser/compat/010-block-width.html

@@ -0,0 +1,43 @@
+<!doctype html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>010 block width</title>
+<style>
+html, body { margin: 0; padding: 0; background: #ffffff; color: #202020; }
+body { font-family: sans-serif; font-size: 13px; }
+h1 { font-size: 20px; margin: 10px 0 4px 10px; }
+p { margin: 0 0 10px 10px; }
+.pane { float: left; width: 440px; margin-left: 10px; }
+.label { background: #eeeeee; padding: 4px 6px; margin-bottom: 4px; }
+.stage { background: #ffffff; padding: 8px; border: 1px solid #999999; }
+.red { background: #cc3333; height: 34px; }
+.after { background: #333333; color: #ffffff; height: 24px; margin-top: 4px; padding-left: 4px; }
+.row { margin-bottom: 8px; }
+</style>
+</head>
+<body>
+<h1>010 &middot; block width</h1>
+<p>Each red box must be the same width in both panes. A is a normal block; B is a float with the same explicit width.</p>
+<div class="pane">
+<div class="label">A: width on normal blocks</div>
+<div class="stage">
+  <div class="row"><div class="red" style="width: 200px"></div></div>
+  <div class="row"><div class="red" style="width: 50%"></div></div>
+  <div class="row"><div class="red" style="width: 400px; max-width: 200px"></div></div>
+  <div class="row"><div class="red" style="width: 100px; min-width: 300px"></div></div>
+  <div class="after">after</div>
+</div>
+</div>
+<div class="pane">
+<div class="label">B: floated reference</div>
+<div class="stage">
+  <div class="row"><div class="red" style="float: left; width: 200px"></div></div>
+  <div class="row"><div class="red" style="float: left; width: 211px"></div></div>
+  <div class="row"><div class="red" style="float: left; width: 200px"></div></div>
+  <div class="row"><div class="red" style="float: left; width: 300px"></div></div>
+  <div class="after">after</div>
+</div>
+</div>
+</body>
+</html>

+ 41 - 0
testdata/browser/compat/011-block-height.html

@@ -0,0 +1,41 @@
+<!doctype html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>011 block height</title>
+<style>
+html, body { margin: 0; padding: 0; background: #ffffff; color: #202020; }
+body { font-family: sans-serif; font-size: 13px; }
+h1 { font-size: 20px; margin: 10px 0 4px 10px; }
+p { margin: 0 0 10px 10px; }
+.pane { float: left; width: 440px; margin-left: 10px; }
+.label { background: #eeeeee; padding: 4px 6px; margin-bottom: 4px; }
+.stage { background: #ffffff; padding: 8px; border: 1px solid #999999; }
+.red { background: #cc3333; }
+.after { background: #333333; color: #ffffff; height: 24px; margin-top: 4px; padding-left: 4px; }
+.row { margin-bottom: 8px; }
+</style>
+</head>
+<body>
+<h1>011 &middot; block height</h1>
+<p>Each red box must have the same total height in both panes.</p>
+<div class="pane">
+<div class="label">A: height / min-height / max-height</div>
+<div class="stage">
+  <div class="row"><div class="red" style="height: 60px; padding: 10px"></div></div>
+  <div class="row"><div class="red" style="height: 20px; min-height: 80px"></div></div>
+  <div class="row"><div class="red" style="height: 200px; max-height: 80px"></div></div>
+  <div class="after">after</div>
+</div>
+</div>
+<div class="pane">
+<div class="label">B: explicit reference</div>
+<div class="stage">
+  <div class="row"><div class="red" style="height: 80px"></div></div>
+  <div class="row"><div class="red" style="height: 80px"></div></div>
+  <div class="row"><div class="red" style="height: 80px"></div></div>
+  <div class="after">after</div>
+</div>
+</div>
+</body>
+</html>

+ 36 - 0
testdata/browser/compat/012-auto-margin.html

@@ -0,0 +1,36 @@
+<!doctype html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>012 auto margin</title>
+<style>
+html, body { margin: 0; padding: 0; background: #ffffff; color: #202020; }
+body { font-family: sans-serif; font-size: 13px; }
+h1 { font-size: 20px; margin: 10px 0 4px 10px; }
+p { margin: 0 0 10px 10px; }
+.pane { float: left; width: 440px; margin-left: 10px; }
+.label { background: #eeeeee; padding: 4px 6px; margin-bottom: 4px; }
+.stage { background: #ffffff; padding: 8px; border: 1px solid #999999; }
+.red { background: #cc3333; height: 40px; }
+.after { background: #333333; color: #ffffff; height: 24px; margin-top: 4px; padding-left: 4px; }
+</style>
+</head>
+<body>
+<h1>012 &middot; margin: 0 auto</h1>
+<p>The red box must be centred in both panes (111 px from the stage's content edge).</p>
+<div class="pane">
+<div class="label">A: width: 200px; margin: 0 auto</div>
+<div class="stage">
+  <div class="red" style="width: 200px; margin: 0 auto"></div>
+  <div class="after">after</div>
+</div>
+</div>
+<div class="pane">
+<div class="label">B: width: 200px; margin-left: 111px</div>
+<div class="stage">
+  <div class="red" style="width: 200px; margin-left: 111px"></div>
+  <div class="after">after</div>
+</div>
+</div>
+</body>
+</html>

+ 36 - 0
testdata/browser/compat/013-box-sizing.html

@@ -0,0 +1,36 @@
+<!doctype html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>013 box sizing</title>
+<style>
+html, body { margin: 0; padding: 0; background: #ffffff; color: #202020; }
+body { font-family: sans-serif; font-size: 13px; }
+h1 { font-size: 20px; margin: 10px 0 4px 10px; }
+p { margin: 0 0 10px 10px; }
+.pane { float: left; width: 440px; margin-left: 10px; }
+.label { background: #eeeeee; padding: 4px 6px; margin-bottom: 4px; }
+.stage { background: #ffffff; padding: 8px; border: 1px solid #999999; }
+.red { background: #cc3333; border: 5px solid #333333; }
+.after { background: #333333; color: #ffffff; height: 24px; margin-top: 4px; padding-left: 4px; }
+</style>
+</head>
+<body>
+<h1>013 &middot; box-sizing</h1>
+<p>Both red boxes must be 200 x 80 px including padding and border.</p>
+<div class="pane">
+<div class="label">A: width: 200px; height: 80px; border-box</div>
+<div class="stage">
+  <div class="red" style="width: 200px; height: 80px; padding: 20px; box-sizing: border-box"></div>
+  <div class="after">after</div>
+</div>
+</div>
+<div class="pane">
+<div class="label">B: width: 150px; height: 30px; content-box</div>
+<div class="stage">
+  <div class="red" style="width: 150px; height: 30px; padding: 20px"></div>
+  <div class="after">after</div>
+</div>
+</div>
+</body>
+</html>

+ 39 - 0
testdata/browser/compat/014-em.html

@@ -0,0 +1,39 @@
+<!doctype html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>014 em units</title>
+<style>
+html { font-size: 10px; }
+body { margin: 0; padding: 0; background: #ffffff; color: #202020; font-size: 13px; font-family: sans-serif; }
+h1 { font-size: 20px; margin: 10px 0 4px 10px; }
+p { margin: 0 0 10px 10px; }
+.pane { float: left; width: 440px; margin-left: 10px; }
+.label { background: #eeeeee; padding: 4px 6px; margin-bottom: 4px; font-size: 13px; }
+.stage { background: #ffffff; padding: 8px; border: 1px solid #999999; }
+.red { background: #cc3333; }
+.after { background: #333333; color: #ffffff; height: 24px; margin-top: 4px; padding-left: 4px; }
+.row { margin-bottom: 8px; }
+</style>
+</head>
+<body>
+<h1>014 &middot; em units</h1>
+<p>Each red box must have the same size and position in both panes.</p>
+<div class="pane">
+<div class="label">A: em</div>
+<div class="stage">
+  <div class="row"><div class="red" style="width: 20em; height: 20px; padding: 1em; border: 0.5em solid #333333"></div></div>
+  <div class="row"><div class="red" style="width: 10em; height: 20px; margin-left: 2em"></div></div>
+  <div class="after">after</div>
+</div>
+</div>
+<div class="pane">
+<div class="label">B: px reference</div>
+<div class="stage">
+  <div class="row"><div class="red" style="width: 200px; height: 20px; padding: 10px; border: 5px solid #333333"></div></div>
+  <div class="row"><div class="red" style="width: 100px; height: 20px; margin-left: 20px"></div></div>
+  <div class="after">after</div>
+</div>
+</div>
+</body>
+</html>

+ 42 - 0
testdata/browser/compat/015-font-shorthand.html

@@ -0,0 +1,42 @@
+<!doctype html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>015 font shorthand</title>
+<style>
+html, body { margin: 0; padding: 0; background: #ffffff; color: #202020; }
+body { font-family: sans-serif; font-size: 13px; }
+h1 { font-size: 20px; margin: 10px 0 4px 10px; }
+p { margin: 0 0 10px 10px; }
+.pane { float: left; width: 440px; margin-left: 10px; }
+.label { background: #eeeeee; padding: 4px 6px; margin-bottom: 4px; }
+.stage { background: #ffffff; padding: 8px; border: 1px solid #999999; }
+.text { width: 360px; background: #eeeeee; padding: 8px; }
+.after { background: #333333; color: #ffffff; height: 24px; margin-top: 8px; padding-left: 4px; }
+</style>
+</head>
+<body>
+<h1>015 &middot; font shorthand</h1>
+<p>The same sentence must use the same typeface, size and line spacing in both panes.</p>
+<div class="pane">
+<div class="label">A: font shorthand</div>
+<div class="stage">
+  <div class="text" style="font: bold 18px/1.5 sans-serif">
+    The quick brown fox jumps over the lazy dog. Pack my box with five dozen
+    liquor jugs. How vexingly quick daft zebras jump!
+  </div>
+  <div class="after">after</div>
+</div>
+</div>
+<div class="pane">
+<div class="label">B: longhand reference</div>
+<div class="stage">
+  <div class="text" style="font-size: 18px; font-weight: bold; line-height: 150%; font-family: sans-serif">
+    The quick brown fox jumps over the lazy dog. Pack my box with five dozen
+    liquor jugs. How vexingly quick daft zebras jump!
+  </div>
+  <div class="after">after</div>
+</div>
+</div>
+</body>
+</html>

+ 44 - 0
testdata/browser/compat/016-borders.html

@@ -0,0 +1,44 @@
+<!doctype html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>016 borders</title>
+<style>
+html, body { margin: 0; padding: 0; background: #ffffff; color: #202020; }
+body { font-family: sans-serif; font-size: 13px; }
+h1 { font-size: 20px; margin: 10px 0 4px 10px; }
+p { margin: 0 0 10px 10px; }
+.pane { float: left; width: 440px; margin-left: 10px; }
+.label { background: #eeeeee; padding: 4px 6px; margin-bottom: 4px; }
+.stage { background: #ffffff; padding: 8px; border: 1px solid #999999; }
+.bare { height: 72px; }
+.after { background: #333333; color: #ffffff; height: 24px; margin-top: 8px; padding-left: 4px; }
+</style>
+</head>
+<body>
+<h1>016 &middot; per-side borders</h1>
+<p>Both boxes must be 212 x 72 px with red on top, green on the right, blue at the bottom and black on the left.</p>
+<div class="pane">
+<div class="label">A: border widths and colours</div>
+<div class="stage">
+  <div class="bare">
+    <div style="width: 200px; height: 60px; background: #dddddd; border-style: solid; border-width: 10px 4px 2px 8px; border-color: #ff0000 #00ff00 #0000ff #000000"></div>
+  </div>
+  <div class="after">after</div>
+</div>
+</div>
+<div class="pane">
+<div class="label">B: absolute reference strips</div>
+<div class="stage">
+  <div class="bare" style="position: relative; height: 72px">
+    <div style="position: absolute; left: 0; top: 0; width: 212px; height: 10px; background: #ff0000"></div>
+    <div style="position: absolute; left: 0; top: 10px; width: 8px; height: 60px; background: #000000"></div>
+    <div style="position: absolute; left: 208px; top: 10px; width: 4px; height: 60px; background: #00ff00"></div>
+    <div style="position: absolute; left: 0; top: 70px; width: 212px; height: 2px; background: #0000ff"></div>
+    <div style="position: absolute; left: 8px; top: 10px; width: 200px; height: 60px; background: #dddddd"></div>
+  </div>
+  <div class="after">after</div>
+</div>
+</div>
+</body>
+</html>

+ 45 - 0
testdata/browser/compat/017-z-index.html

@@ -0,0 +1,45 @@
+<!doctype html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>017 z-index</title>
+<style>
+html, body { margin: 0; padding: 0; background: #ffffff; color: #202020; }
+body { font-family: sans-serif; font-size: 13px; }
+h1 { font-size: 20px; margin: 10px 0 4px 10px; }
+p { margin: 0 0 10px 10px; }
+.pane { float: left; width: 440px; margin-left: 10px; }
+.label { background: #eeeeee; padding: 4px 6px; margin-bottom: 4px; }
+.stage { background: #eeeeee; padding: 8px; border: 1px solid #999999; }
+.cover { position: relative; width: 150px; height: 150px; }
+.box { position: absolute; width: 80px; height: 80px; }
+.after { background: #333333; color: #ffffff; height: 24px; margin-top: 8px; padding-left: 4px; }
+</style>
+</head>
+<body>
+<h1>017 &middot; z-index</h1>
+<p>Red must be on top, then green, then blue, in both panes.</p>
+<div class="pane">
+<div class="label">A: z-index</div>
+<div class="stage">
+  <div class="cover">
+    <div class="box" style="left: 0; top: 0; background: #cc2222; z-index: 3"></div>
+    <div class="box" style="left: 30px; top: 30px; background: #22aa44; z-index: 2"></div>
+    <div class="box" style="left: 60px; top: 60px; background: #2244cc; z-index: 1"></div>
+  </div>
+  <div class="after">after</div>
+</div>
+</div>
+<div class="pane">
+<div class="label">B: document order reference</div>
+<div class="stage">
+  <div class="cover">
+    <div class="box" style="left: 60px; top: 60px; background: #2244cc"></div>
+    <div class="box" style="left: 30px; top: 30px; background: #22aa44"></div>
+    <div class="box" style="left: 0; top: 0; background: #cc2222"></div>
+  </div>
+  <div class="after">after</div>
+</div>
+</div>
+</body>
+</html>

+ 36 - 0
testdata/browser/compat/018-relative.html

@@ -0,0 +1,36 @@
+<!doctype html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>018 relative</title>
+<style>
+html, body { margin: 0; padding: 0; background: #ffffff; color: #202020; }
+body { font-family: sans-serif; font-size: 13px; }
+h1 { font-size: 20px; margin: 10px 0 4px 10px; }
+p { margin: 0 0 10px 10px; }
+.pane { float: left; width: 440px; margin-left: 10px; }
+.label { background: #eeeeee; padding: 4px 6px; margin-bottom: 4px; }
+.stage { background: #ffffff; padding: 8px; border: 1px solid #999999; }
+.red { width: 120px; height: 30px; background: #cc3333; }
+.after { background: #333333; color: #ffffff; height: 24px; padding-left: 4px; }
+</style>
+</head>
+<body>
+<h1>018 &middot; position: relative</h1>
+<p>The red box and the following bar must be in the same place in both panes.</p>
+<div class="pane">
+<div class="label">A: relative left/top</div>
+<div class="stage">
+  <div class="red" style="position: relative; left: 40px; top: 20px"></div>
+  <div class="after">after</div>
+</div>
+</div>
+<div class="pane">
+<div class="label">B: margins</div>
+<div class="stage">
+  <div class="red" style="margin-left: 40px; margin-top: 20px; margin-bottom: -20px"></div>
+  <div class="after">after</div>
+</div>
+</div>
+</body>
+</html>

+ 41 - 0
testdata/browser/compat/019-right-bottom.html

@@ -0,0 +1,41 @@
+<!doctype html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>019 right and bottom</title>
+<style>
+html, body { margin: 0; padding: 0; background: #ffffff; color: #202020; }
+body { font-family: sans-serif; font-size: 13px; }
+h1 { font-size: 20px; margin: 10px 0 4px 10px; }
+p { margin: 0 0 10px 10px; }
+.pane { float: left; width: 440px; margin-left: 10px; }
+.label { background: #eeeeee; padding: 4px 6px; margin-bottom: 4px; }
+.stage { background: #ffffff; padding: 8px; border: 1px solid #999999; }
+.cover { background: #eeeeee; width: 300px; height: 160px; }
+.box { position: absolute; width: 60px; height: 40px; background: #cc3333; }
+.after { background: #333333; color: #ffffff; height: 24px; margin-top: 8px; padding-left: 4px; }
+</style>
+</head>
+<body>
+<h1>019 &middot; right and bottom</h1>
+<p>The red box must sit at the same bottom-right position in both panes.</p>
+<div class="pane">
+<div class="label">A: right: 20px; bottom: 10px</div>
+<div class="stage">
+  <div class="cover">
+    <div class="box" style="right: 20px; bottom: 10px"></div>
+  </div>
+  <div class="after">after</div>
+</div>
+</div>
+<div class="pane">
+<div class="label">B: left: 220px; top: 110px</div>
+<div class="stage">
+  <div class="cover">
+    <div class="box" style="left: 220px; top: 110px"></div>
+  </div>
+  <div class="after">after</div>
+</div>
+</div>
+</body>
+</html>

+ 43 - 0
testdata/browser/compat/020-table-span.html

@@ -0,0 +1,43 @@
+<!doctype html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>020 table colspan</title>
+<style>
+html, body { margin: 0; padding: 0; background: #ffffff; color: #202020; }
+body { font-family: sans-serif; font-size: 13px; }
+h1 { font-size: 20px; margin: 10px 0 4px 10px; }
+p { margin: 0 0 10px 10px; }
+.pane { float: left; width: 440px; margin-left: 10px; }
+.label { background: #eeeeee; padding: 4px 6px; margin-bottom: 4px; }
+.stage { background: #ffffff; padding: 8px; border: 1px solid #999999; }
+td { padding: 4px; border: 1px solid #999999; }
+.red { background: #cc3333; color: #ffffff; }
+.after { background: #333333; color: #ffffff; height: 24px; margin-top: 8px; padding-left: 4px; }
+</style>
+</head>
+<body>
+<h1>020 &middot; table colspan</h1>
+<p>The red row must span all three columns in both panes.</p>
+<div class="pane">
+<div class="label">A: colspan=3</div>
+<div class="stage">
+  <table style="width: 422px">
+    <tr><td colspan="3" class="red" style="height: 24px">spanning row</td></tr>
+    <tr><td style="width: 90px">90</td><td style="width: 200px">200</td><td style="width: 132px">132</td></tr>
+  </table>
+  <div class="after">after</div>
+</div>
+</div>
+<div class="pane">
+<div class="label">B: full-width row</div>
+<div class="stage">
+  <div class="red" style="width: 422px; height: 34px; padding: 4px; border: 1px solid #999999; box-sizing: border-box">spanning row</div>
+  <table style="width: 422px">
+    <tr><td style="width: 90px">90</td><td style="width: 200px">200</td><td style="width: 132px">132</td></tr>
+  </table>
+  <div class="after">after</div>
+</div>
+</div>
+</body>
+</html>

+ 42 - 0
testdata/browser/compat/021-table-percent.html

@@ -0,0 +1,42 @@
+<!doctype html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>021 table percentage columns</title>
+<style>
+html, body { margin: 0; padding: 0; background: #ffffff; color: #202020; }
+body { font-family: sans-serif; font-size: 13px; }
+h1 { font-size: 20px; margin: 10px 0 4px 10px; }
+p { margin: 0 0 10px 10px; }
+.pane { float: left; width: 440px; margin-left: 10px; }
+.label { background: #eeeeee; padding: 4px 6px; margin-bottom: 4px; }
+.stage { background: #ffffff; padding: 8px; border: 1px solid #999999; }
+td { height: 24px; color: #ffffff; }
+.red { background: #cc3333; }
+.blue { background: #2244cc; }
+.after { background: #333333; color: #ffffff; height: 24px; margin-top: 8px; padding-left: 4px; }
+</style>
+</head>
+<body>
+<h1>021 &middot; table percentage columns</h1>
+<p>The red cell must be 30% and the blue cell 70% of the table in both panes.</p>
+<div class="pane">
+<div class="label">A: 30% / 70%</div>
+<div class="stage">
+  <table style="width: 422px">
+    <tr><td class="red" style="width: 30%">30%</td><td class="blue" style="width: 70%">70%</td></tr>
+  </table>
+  <div class="after">after</div>
+</div>
+</div>
+<div class="pane">
+<div class="label">B: 126px / 296px reference</div>
+<div class="stage">
+  <table style="width: 422px">
+    <tr><td class="red" style="width: 126px">30%</td><td class="blue" style="width: 296px">70%</td></tr>
+  </table>
+  <div class="after">after</div>
+</div>
+</div>
+</body>
+</html>

+ 45 - 0
testdata/browser/compat/022-flex-align.html

@@ -0,0 +1,45 @@
+<!doctype html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>022 flex alignment</title>
+<style>
+html, body { margin: 0; padding: 0; background: #ffffff; color: #202020; }
+body { font-family: sans-serif; font-size: 13px; }
+h1 { font-size: 20px; margin: 10px 0 4px 10px; }
+p { margin: 0 0 10px 10px; }
+.pane { float: left; width: 440px; margin-left: 10px; }
+.label { background: #eeeeee; padding: 4px 6px; margin-bottom: 4px; }
+.stage { background: #ffffff; padding: 8px; border: 1px solid #999999; }
+.cover { background: #eeeeee; width: 360px; height: 100px; }
+.item { width: 60px; }
+.after { background: #333333; color: #ffffff; height: 24px; margin-top: 8px; padding-left: 4px; }
+</style>
+</head>
+<body>
+<h1>022 &middot; flex alignment</h1>
+<p>Three 60px items must be space-between and vertically centred in both panes.</p>
+<div class="pane">
+<div class="label">A: justify-content / align-items</div>
+<div class="stage">
+  <div class="cover" style="display: flex; justify-content: space-between; align-items: center">
+    <div class="item" style="height: 40px; background: #cc2222"></div>
+    <div class="item" style="height: 60px; background: #22aa44"></div>
+    <div class="item" style="height: 80px; background: #2244cc"></div>
+  </div>
+  <div class="after">after</div>
+</div>
+</div>
+<div class="pane">
+<div class="label">B: absolute reference</div>
+<div class="stage">
+  <div class="cover">
+    <div class="item" style="position: absolute; left: 0; top: 30px; height: 40px; background: #cc2222"></div>
+    <div class="item" style="position: absolute; left: 150px; top: 20px; height: 60px; background: #22aa44"></div>
+    <div class="item" style="position: absolute; left: 300px; top: 10px; height: 80px; background: #2244cc"></div>
+  </div>
+  <div class="after">after</div>
+</div>
+</div>
+</body>
+</html>

+ 36 - 0
testdata/browser/compat/023-calc.html

@@ -0,0 +1,36 @@
+<!doctype html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>023 calc</title>
+<style>
+html, body { margin: 0; padding: 0; background: #ffffff; color: #202020; }
+body { font-family: sans-serif; font-size: 13px; }
+h1 { font-size: 20px; margin: 10px 0 4px 10px; }
+p { margin: 0 0 10px 10px; }
+.pane { float: left; width: 440px; margin-left: 10px; }
+.label { background: #eeeeee; padding: 4px 6px; margin-bottom: 4px; }
+.stage { background: #ffffff; padding: 8px; border: 1px solid #999999; }
+.red { background: #cc3333; height: 40px; }
+.after { background: #333333; color: #ffffff; height: 24px; margin-top: 8px; padding-left: 4px; }
+</style>
+</head>
+<body>
+<h1>023 &middot; calc()</h1>
+<p>The red box must be 191 px wide in both panes (422px stage minus 20px).</p>
+<div class="pane">
+<div class="label">A: width: calc(50% - 20px)</div>
+<div class="stage">
+  <div class="red" style="width: calc(50% - 20px)"></div>
+  <div class="after">after</div>
+</div>
+</div>
+<div class="pane">
+<div class="label">B: width: 191px</div>
+<div class="stage">
+  <div class="red" style="width: 191px"></div>
+  <div class="after">after</div>
+</div>
+</div>
+</body>
+</html>

+ 39 - 0
testdata/browser/compat/024-nested-em.html

@@ -0,0 +1,39 @@
+<!doctype html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>024 nested em</title>
+<style>
+html, body { margin: 0; padding: 0; background: #ffffff; color: #202020; }
+body { font-family: sans-serif; font-size: 13px; }
+h1 { font-size: 20px; margin: 10px 0 4px 10px; }
+p { margin: 0 0 10px 10px; }
+.pane { float: left; width: 440px; margin-left: 10px; }
+.label { background: #eeeeee; padding: 4px 6px; margin-bottom: 4px; }
+.stage { background: #ffffff; padding: 8px; border: 1px solid #999999; }
+.outer { font-size: 20px; }
+.inner { font-size: 1.5em; width: 10em; height: 30px; background: #cc3333; color: #ffffff; }
+.after { background: #333333; color: #ffffff; height: 24px; margin-top: 8px; padding-left: 4px; }
+</style>
+</head>
+<body>
+<h1>024 &middot; nested em</h1>
+<p>The red box must be 300 x 30 px with 30 px text in both panes.</p>
+<div class="pane">
+<div class="label">A: font-size: 1.5em; width: 10em</div>
+<div class="stage">
+  <div class="outer">
+    <div class="inner">Aa</div>
+  </div>
+  <div class="after">after</div>
+</div>
+</div>
+<div class="pane">
+<div class="label">B: width: 300px; font-size: 30px</div>
+<div class="stage">
+  <div class="inner" style="font-size: 30px; width: 300px">Aa</div>
+  <div class="after">after</div>
+</div>
+</div>
+</body>
+</html>

+ 37 - 0
testdata/browser/compat/025-nowrap.html

@@ -0,0 +1,37 @@
+<!doctype html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>025 white-space: nowrap</title>
+<style>
+html, body { margin: 0; padding: 0; background: #ffffff; color: #202020; }
+body { font-family: sans-serif; font-size: 13px; }
+h1 { font-size: 20px; margin: 10px 0 4px 10px; }
+p { margin: 0 0 10px 10px; }
+.pane { float: left; width: 440px; margin-left: 10px; }
+.label { background: #eeeeee; padding: 4px 6px; margin-bottom: 4px; }
+.stage { background: #ffffff; padding: 8px; border: 1px solid #999999; }
+.nowrap { width: 200px; white-space: nowrap; }
+.wide { width: 420px; }
+.after { background: #333333; color: #ffffff; height: 24px; margin-top: 8px; padding-left: 4px; }
+</style>
+</head>
+<body>
+<h1>025 &middot; white-space: nowrap</h1>
+<p>The sentence must stay on one line in both panes; A's line box is only 200 px wide.</p>
+<div class="pane">
+<div class="label">A: width: 200px; white-space: nowrap</div>
+<div class="stage">
+  <div class="nowrap">The quick brown fox jumps over the lazy dog.</div>
+  <div class="after">after</div>
+</div>
+</div>
+<div class="pane">
+<div class="label">B: width: 420px reference</div>
+<div class="stage">
+  <div class="wide">The quick brown fox jumps over the lazy dog.</div>
+  <div class="after">after</div>
+</div>
+</div>
+</body>
+</html>

+ 36 - 0
testdata/browser/compat/026-transform.html

@@ -0,0 +1,36 @@
+<!doctype html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>026 transform translate</title>
+<style>
+html, body { margin: 0; padding: 0; background: #ffffff; color: #202020; }
+body { font-family: sans-serif; font-size: 13px; }
+h1 { font-size: 20px; margin: 10px 0 4px 10px; }
+p { margin: 0 0 10px 10px; }
+.pane { float: left; width: 440px; margin-left: 10px; }
+.label { background: #eeeeee; padding: 4px 6px; margin-bottom: 4px; }
+.stage { background: #ffffff; padding: 8px; border: 1px solid #999999; }
+.red { width: 120px; height: 30px; background: #cc3333; }
+.after { background: #333333; color: #ffffff; height: 24px; padding-left: 4px; }
+</style>
+</head>
+<body>
+<h1>026 &middot; transform: translate</h1>
+<p>The red box and the following bar must be in the same place in both panes.</p>
+<div class="pane">
+<div class="label">A: transform: translate(40px, 20px)</div>
+<div class="stage">
+  <div class="red" style="transform: translate(40px, 20px)"></div>
+  <div class="after">after</div>
+</div>
+</div>
+<div class="pane">
+<div class="label">B: margins</div>
+<div class="stage">
+  <div class="red" style="margin-left: 40px; margin-top: 20px; margin-bottom: -20px"></div>
+  <div class="after">after</div>
+</div>
+</div>
+</body>
+</html>

+ 48 - 0
testdata/browser/compat/027-sticky.html

@@ -0,0 +1,48 @@
+<!doctype html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>027 position: sticky</title>
+<style>
+html, body { margin: 0; padding: 0; background: #ffffff; color: #202020; }
+body { font-family: sans-serif; font-size: 14px; }
+h1 { font-size: 20px; margin: 10px 0 4px 10px; }
+p { margin: 0 0 12px 10px; }
+.header { position: sticky; top: 0; height: 40px; background: #333333; color: #ffffff; padding: 8px; font-size: 18px; }
+.content { padding: 0 10px; }
+.after { background: #cc3333; color: #ffffff; height: 30px; margin-top: 20px; padding: 6px; }
+</style>
+</head>
+<body>
+<h1>027 &middot; position: sticky</h1>
+<p>Scroll down: the dark header must stay at the top of the page area.</p>
+<div class="header">Sticky header</div>
+<div class="content">
+<p>Line 1: the quick brown fox jumps over the lazy dog.</p>
+<p>Line 2: the quick brown fox jumps over the lazy dog.</p>
+<p>Line 3: the quick brown fox jumps over the lazy dog.</p>
+<p>Line 4: the quick brown fox jumps over the lazy dog.</p>
+<p>Line 5: the quick brown fox jumps over the lazy dog.</p>
+<p>Line 6: the quick brown fox jumps over the lazy dog.</p>
+<p>Line 7: the quick brown fox jumps over the lazy dog.</p>
+<p>Line 8: the quick brown fox jumps over the lazy dog.</p>
+<p>Line 9: the quick brown fox jumps over the lazy dog.</p>
+<p>Line 10: the quick brown fox jumps over the lazy dog.</p>
+<p>Line 11: the quick brown fox jumps over the lazy dog.</p>
+<p>Line 12: the quick brown fox jumps over the lazy dog.</p>
+<p>Line 13: the quick brown fox jumps over the lazy dog.</p>
+<p>Line 14: the quick brown fox jumps over the lazy dog.</p>
+<p>Line 15: the quick brown fox jumps over the lazy dog.</p>
+<p>Line 16: the quick brown fox jumps over the lazy dog.</p>
+<p>Line 17: the quick brown fox jumps over the lazy dog.</p>
+<p>Line 18: the quick brown fox jumps over the lazy dog.</p>
+<p>Line 19: the quick brown fox jumps over the lazy dog.</p>
+<p>Line 20: the quick brown fox jumps over the lazy dog.</p>
+<p>Line 21: the quick brown fox jumps over the lazy dog.</p>
+<p>Line 22: the quick brown fox jumps over the lazy dog.</p>
+<p>Line 23: the quick brown fox jumps over the lazy dog.</p>
+<p>Line 24: the quick brown fox jumps over the lazy dog.</p>
+</div>
+<div class="after">end of content</div>
+</body>
+</html>

+ 36 - 0
testdata/browser/compat/028-background-image.html

@@ -0,0 +1,36 @@
+<!doctype html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>028 background-image</title>
+<style>
+html, body { margin: 0; padding: 0; background: #ffffff; color: #202020; }
+body { font-family: sans-serif; font-size: 13px; }
+h1 { font-size: 20px; margin: 10px 0 4px 10px; }
+p { margin: 0 0 10px 10px; }
+.pane { float: left; width: 440px; margin-left: 10px; }
+.label { background: #eeeeee; padding: 4px 6px; margin-bottom: 4px; }
+.stage { background: #ffffff; padding: 8px; border: 1px solid #999999; }
+.bg { width: 194px; height: 122px; background-image: url(PIC.BMP); }
+.after { background: #333333; color: #ffffff; height: 24px; margin-top: 8px; padding-left: 4px; }
+</style>
+</head>
+<body>
+<h1>028 &middot; background-image</h1>
+<p>The two images must be identical.</p>
+<div class="pane">
+<div class="label">A: background-image: url(PIC.BMP)</div>
+<div class="stage">
+  <div class="bg"></div>
+  <div class="after">after</div>
+</div>
+</div>
+<div class="pane">
+<div class="label">B: inline image reference</div>
+<div class="stage">
+  <img src="PIC.BMP" width="194" height="122" alt="PIC.BMP">
+  <div class="after">after</div>
+</div>
+</div>
+</body>
+</html>

+ 41 - 0
testdata/browser/compat/029-float-percent.html

@@ -0,0 +1,41 @@
+<!doctype html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>029 percentage floats</title>
+<style>
+html, body { margin: 0; padding: 0; background: #ffffff; color: #202020; }
+body { font-family: sans-serif; font-size: 13px; }
+h1 { font-size: 20px; margin: 10px 0 4px 10px; }
+p { margin: 0 0 10px 10px; }
+.pane { float: left; width: 440px; margin-left: 10px; }
+.label { background: #eeeeee; padding: 4px 6px; margin-bottom: 4px; }
+.stage { background: #ffffff; padding: 8px; border: 1px solid #999999; }
+.red { background: #cc3333; height: 40px; }
+.blue { background: #2244cc; height: 40px; }
+.after { background: #333333; color: #ffffff; height: 24px; margin-top: 8px; padding-left: 4px; }
+</style>
+</head>
+<body>
+<h1>029 &middot; percentage floats</h1>
+<p>Each pane must show two 50% columns side by side.</p>
+<div class="pane">
+<div class="label">A: float: left; width: 50%</div>
+<div class="stage">
+  <div class="red" style="float: left; width: 50%"></div>
+  <div class="blue" style="float: left; width: 50%"></div>
+  <div class="after">after</div>
+</div>
+</div>
+<div class="pane">
+<div class="label">B: absolute 200px reference</div>
+<div class="stage">
+  <div style="position: relative; height: 40px">
+    <div class="red" style="position: absolute; left: 0; top: 0; width: 200px; height: 40px"></div>
+    <div class="blue" style="position: absolute; left: 200px; top: 0; width: 200px; height: 40px"></div>
+  </div>
+  <div class="after">after</div>
+</div>
+</div>
+</body>
+</html>

+ 30 - 0
testdata/browser/compat/README

@@ -0,0 +1,30 @@
+NebOS browser compatibility ladder
+=================================
+
+One page per behaviour.  Each failing page is a small, isolated test:
+
+  left pane  (A) uses the feature under test
+  right pane (B) produces the same result with primitives that already work
+
+When the two panes look identical the feature is correct.  Later the panes can
+be screenshotted and diffed automatically because they are at fixed offsets.
+
+Serve this directory from the host and open it on the board:
+
+  make compat-serve
+  # or: python3 -m http.server -d testdata/browser/compat 8000
+
+  browser http://<host>:8000/            # board
+  browser http://10.0.2.2:8000/         # QEMU with -netdev user
+
+Status: 010-029 pass.  Still missing from the ladder: table rowspan,
+float text wrap/clear, @font-face, percentage margins/padding, and the
+full CSS background/transform property sets (the pages cover the forms
+that the engine implements).
+
+Rules for new pages:
+  - one behaviour per page;
+  - no JavaScript and no network assets outside this directory;
+  - explicit white background and dark text;
+  - page chrome uses only primitives introduced earlier in the ladder;
+  - keep the two panes at fixed offsets: floats with explicit px widths.

+ 55 - 0
testdata/browser/compat/index.html

@@ -0,0 +1,55 @@
+<!doctype html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>NebOS browser compatibility ladder</title>
+<style>
+html, body { margin: 0; padding: 0; background: #ffffff; color: #202020; }
+body { font-family: sans-serif; font-size: 14px; padding: 16px; }
+h1 { font-size: 26px; margin: 0 0 4px 0; }
+p.note { color: #555555; margin: 0 0 14px 0; }
+table { border: 1px solid #999999; }
+th, td { padding: 5px 10px; border-bottom: 1px solid #dddddd; }
+th { background: #eeeeee; text-align: left; }
+a { color: #0645ad; }
+.pass { color: #117711; font-weight: bold; }
+.fail { color: #aa2222; font-weight: bold; }
+.todo { color: #777777; }
+</style>
+</head>
+<body>
+<h1>NebOS browser compatibility ladder</h1>
+<p class="note">One behaviour per page. A and B must look identical unless the page says otherwise.</p>
+<table>
+<tr><th>#</th><th>Page</th><th>Feature</th><th>Status</th></tr>
+<tr><td>001</td><td><a href="001-cascade.html">cascade</a></td><td>class, id, inline style, specificity</td><td class="pass">PASS</td></tr>
+<tr><td>002</td><td><a href="002-inline.html">inline</a></td><td>text, bold, italic, underline</td><td class="pass">PASS</td></tr>
+<tr><td>003</td><td><a href="003-lists.html">lists</a></td><td>ul/ol nesting and markers</td><td class="pass">PASS</td></tr>
+<tr><td>004</td><td><a href="004-float-row.html">float row</a></td><td>float left/right columns</td><td class="pass">PASS</td></tr>
+<tr><td>005</td><td><a href="005-table.html">table</a></td><td>basic rows, cells, padding</td><td class="pass">PASS</td></tr>
+<tr><td>006</td><td><a href="006-flex-grid.html">flex/grid</a></td><td>flex grow and two-column grid</td><td class="pass">PASS</td></tr>
+<tr><td>007</td><td><a href="007-absolute.html">absolute</a></td><td>absolute positioning</td><td class="pass">PASS</td></tr>
+<tr><td>008</td><td><a href="008-media.html">media</a></td><td>@media min-width</td><td class="pass">PASS</td></tr>
+<tr><td>010</td><td><a href="010-block-width.html">block width</a></td><td>width, min-width, max-width on a block</td><td class="pass">PASS</td></tr>
+<tr><td>011</td><td><a href="011-block-height.html">block height</a></td><td>height, min-height, max-height</td><td class="pass">PASS</td></tr>
+<tr><td>012</td><td><a href="012-auto-margin.html">auto margin</a></td><td>margin: 0 auto</td><td class="pass">PASS</td></tr>
+<tr><td>013</td><td><a href="013-box-sizing.html">box sizing</a></td><td>border-box vs content-box</td><td class="pass">PASS</td></tr>
+<tr><td>014</td><td><a href="014-em.html">em units</a></td><td>em lengths against root font size</td><td class="pass">PASS</td></tr>
+<tr><td>015</td><td><a href="015-font-shorthand.html">font shorthand</a></td><td>font: style weight size/line-height family</td><td class="pass">PASS</td></tr>
+<tr><td>016</td><td><a href="016-borders.html">borders</a></td><td>per-side widths/colors</td><td class="pass">PASS</td></tr>
+<tr><td>017</td><td><a href="017-z-index.html">z-index</a></td><td>stacking of positioned boxes</td><td class="pass">PASS</td></tr>
+<tr><td>018</td><td><a href="018-relative.html">relative</a></td><td>position: relative offsets</td><td class="pass">PASS</td></tr>
+<tr><td>019</td><td><a href="019-right-bottom.html">right/bottom</a></td><td>absolute right and bottom</td><td class="pass">PASS</td></tr>
+<tr><td>020</td><td><a href="020-table-span.html">table colspan</a></td><td>colspan (rowspan still open)</td><td class="pass">PASS</td></tr>
+<tr><td>021</td><td><a href="021-table-percent.html">table percent</a></td><td>table width and percentage columns</td><td class="pass">PASS</td></tr>
+<tr><td>022</td><td><a href="022-flex-align.html">flex align</a></td><td>justify-content and align-items</td><td class="pass">PASS</td></tr>
+<tr><td>023</td><td><a href="023-calc.html">calc</a></td><td>calc(percent +/- px)</td><td class="pass">PASS</td></tr>
+<tr><td>024</td><td><a href="024-nested-em.html">nested em</a></td><td>em against the element font size</td><td class="pass">PASS</td></tr>
+<tr><td>025</td><td><a href="025-nowrap.html">nowrap</a></td><td>white-space: nowrap</td><td class="pass">PASS</td></tr>
+<tr><td>026</td><td><a href="026-transform.html">transform</a></td><td>transform: translate</td><td class="pass">PASS</td></tr>
+<tr><td>027</td><td><a href="027-sticky.html">sticky</a></td><td>position: sticky top</td><td class="pass">PASS</td></tr>
+<tr><td>028</td><td><a href="028-background-image.html">background-image</a></td><td>background image stretched to the box</td><td class="pass">PASS</td></tr>
+<tr><td>029</td><td><a href="029-float-percent.html">percentage floats</a></td><td>float with width: 50%</td><td class="pass">PASS</td></tr>
+</table>
+</body>
+</html>

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio