Skip to content

6.11: layout natural sizes and background images - #198

Draft
atiernan wants to merge 6 commits into
phase6/6.10-image-itemsfrom
phase6/6.11-layout-images
Draft

atiernan wants to merge 6 commits into
phase6/6.10-image-itemsfrom
phase6/6.11-layout-images

Conversation

@atiernan

Copy link
Copy Markdown
Member

Item 6.11 (layout: natural sizes and background images). Draft; CI has not run.

Built

  • clazel-style: the background-image/-repeat/-position/-size/-origin/-clip longhands computed (ComputedStyle::backgrounds, one layer per image, lists repeated, CSS Backgrounds 3 §2.1); url() made absolute against its sheet (SheetSource::url, Sources::document_url; new dependency on clazel-url).
  • clazel-layout: images::Images (the interface for 6.18: img by node id, background by absolute URL; Pending/Sized/Ready{id}/Broken); img natural size and ratio in CSS 2.1 §10.3.2/§10.6.2; a broken img with alt is an inline box of the text (HTML §15.4.2); layout_with_images, build_with_images, paint_with_images; Item::Image for an img and for tiled backgrounds (repeat, space, round, no-repeat, position, size, origin, clip, layers, canvas propagation) clipped to the painting area.
  • clazel-renderer ignores Item::Image for now (6.18). The reftest classifier now counts position/size/repeat/origin/clip as in the subset.

Tests (native): style 79 lib incl. 4 new; layout 196 lib incl. 10 image tests and 7 tiling tests; clippy and cargo xtask check pass locally. Miri: image/style tests skip under Miri (over 0.002 s); tiling math tests run (microseconds). Not run locally: Verus, Kani, Miri, cargo xtask verify.

Not done: WPT reftests (need decoders and headless mode); srcset densities (6.18); images on inline boxes and table tracks; 3/4-value background-position; background-attachment: fixed; gradients; tier unchanged (0).

🤖 Generated with Claude Code

atiernan and others added 4 commits November 19, 2026 23:39
…inst its sheet (6.11)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…6.11)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…6.11)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…per-crate Miri and changed-crate CI)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

# Conflicts:
#	docs/phases/phase-6.md
…per-crate Miri and changed-crate CI)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch is waiting to be deployed

1 waiting deployment
full-verification — 8b590b38 Waiting Nov 20, 2026 by atiernan via Approve the proofs #602
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant