we (web engine): Experimental web browser project to understand the limits of Claude
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

UA stylesheet: missing body margin, list bullets, strong/em weight, pre whitespace #190

open opened by pierrelf.com

Found by the new headless e2e harness during a smoke pass. Several user-agent stylesheet defaults are missing or wrong.

Symptoms#

Reproduce: cargo run -p we-e2e -- --url crates/e2e/pages/01_basic.html --out /tmp/01.png See screenshot crates/e2e/artifacts/01_basic.png.

  1. <body> has no default margin. Content is glued to x=0, y=0. Per CSS UA defaults, body should have margin: 8px. Visible on virtually every page rendered without explicit body styling.

  2. <ul> / <ol> render no bullets / numbers and have no left padding. Items appear flush-left as plain lines.

  3. <strong> is not bold and <em> is not italic. Inline text uses the same weight/style as surrounding text.

  4. <pre> does not preserve whitespace. Source pre blocks render with collapsed spaces and joined lines instead of white-space: pre. See crates/e2e/artifacts/03_typography.png.

Repro#

cargo run -p we-e2e -- --scenario crates/e2e/scenarios/smoke.we --out-dir crates/e2e/artifacts

Acceptance#

UA stylesheet (or the equivalent in we_style) populates these defaults so the smoke test renders body content with proper margin and inline emphasis renders with the expected weight/style.

sign up or login to add to the discussion
Labels

None yet.

assignee

None yet.

Participants 1
AT URI
at://did:plc:meotu43t6usg4qdwzenk4s2t/sh.tangled.repo.issue/3mlyaafvyl72z