Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions fixtures/test-html/L0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ A small set of broad subsystems — not one domain per CSS property.
| `text` | `color`, `font-*`, `text-align`, `text-transform`, `text-indent`, `text-overflow`, `text-shadow`, `line-height`, `letter-spacing`, `word-spacing`, `text-decoration-*`, `white-space`, `word-break`, `overflow-wrap`, `direction`, `writing-mode` |
| `inline` | Inline element rendering (`<strong>`, `<em>`, `<code>`, inline box decoration) |
| `list` | `<ul>`, `<ol>`, `list-style-type`, counters, nested lists |
| `form` | `<input>`, `<textarea>`, `<select>`, `<button>`, `<fieldset>`, `<legend>`, `<progress>`, `<meter>`, form element appearance |
| `table` | `display: table*`, `border-collapse`, `border-spacing` |
| `filter` | `filter`, `backdrop-filter` |
| `transform` | `transform`, `transform-origin`, `perspective` |
Expand Down Expand Up @@ -105,6 +106,16 @@ list-unordered.html <ul> disc/circle/square
list-ordered.html <ol> decimal, alpha
list-nested.html nested list counters

# --- form ---
form-input-text.html text, password, email, search, url, tel, number
form-input-checkbox.html checkbox and radio buttons
form-input-range.html range, color, date, time
form-textarea.html textarea states and resize
form-select.html single, optgroup, multiple
form-button.html button and input[type=submit/reset/button]
form-fieldset.html fieldset, legend, disabled group
form-progress.html progress and meter elements

# --- filter ---
filter-blur.html filter: blur()
filter-backdrop-blur.html backdrop-filter: blur()
Expand Down
68 changes: 68 additions & 0 deletions fixtures/test-html/L0/form-button.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Form: Button</title>
<style>
body {
margin: 0;
padding: 24px;
background: #fff;
color: #000;
font-family: system-ui, sans-serif;
font-size: 14px;
}

.label {
font-size: 11px;
color: #666;
padding-bottom: 4px;
}

.grid {
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 32px;
}

.cell {
display: flex;
flex-direction: column;
}
</style>
</head>

<body>
<div class="grid">
<div class="cell">
<div class="label">&lt;button&gt;</div>
<button>Click Me</button>
</div>
<div class="cell">
<div class="label">type=submit</div>
<button type="submit">Submit</button>
</div>
<div class="cell">
<div class="label">type=reset</div>
<button type="reset">Reset</button>
</div>
<div class="cell">
<div class="label">disabled</div>
<button disabled>Disabled</button>
</div>
<div class="cell">
<div class="label">input type=submit</div>
<input type="submit" value="Submit Input" />
</div>
<div class="cell">
<div class="label">input type=reset</div>
<input type="reset" value="Reset Input" />
</div>
<div class="cell">
<div class="label">input type=button</div>
<input type="button" value="Button Input" />
</div>
</div>
</body>
</html>
95 changes: 95 additions & 0 deletions fixtures/test-html/L0/form-fieldset.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Form: Fieldset & Legend</title>
<style>
body {
margin: 0;
padding: 24px;
background: #fff;
color: #000;
font-family: system-ui, sans-serif;
font-size: 14px;
}

.label {
font-size: 11px;
color: #666;
padding-bottom: 4px;
}

.grid {
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 32px;
}

.cell {
display: flex;
flex-direction: column;
}

.row {
display: flex;
flex-direction: row;
align-items: center;
gap: 8px;
padding: 4px 0;
}
</style>
</head>

<body>
<div class="grid">
<div class="cell">
<div class="label">fieldset + legend</div>
<fieldset>
<legend>Personal Info</legend>
<div class="row">
<label>Name</label>
<input type="text" value="Jane" />
</div>
<div class="row">
<label>Email</label>
<input type="email" value="jane@example.com" />
</div>
</fieldset>
</div>

<div class="cell">
<div class="label">disabled fieldset</div>
<fieldset disabled>
<legend>Disabled Group</legend>
<div class="row">
<label>Field A</label>
<input type="text" value="Cannot edit" />
</div>
<div class="row">
<label>Field B</label>
<input type="text" value="Also disabled" />
</div>
</fieldset>
</div>

<div class="cell">
<div class="label">nested fieldset</div>
<fieldset>
<legend>Outer</legend>
<div class="row">
<label>Outer field</label>
<input type="text" value="Value" />
</div>
<fieldset>
<legend>Inner</legend>
<div class="row">
<label>Inner field</label>
<input type="text" value="Nested" />
</div>
</fieldset>
</fieldset>
</div>
</div>
</body>
</html>
119 changes: 119 additions & 0 deletions fixtures/test-html/L0/form-input-checkbox.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Form: Input — Checkbox & Radio</title>
<style>
body {
margin: 0;
padding: 24px;
background: #fff;
color: #000;
font-family: system-ui, sans-serif;
font-size: 14px;
}

.label {
font-size: 11px;
color: #666;
padding-bottom: 4px;
}

.grid {
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 32px;
}

.cell {
display: flex;
flex-direction: column;
gap: 8px;
}

.row {
display: flex;
flex-direction: row;
align-items: center;
gap: 8px;
}
</style>
</head>

<body>
<div class="grid">
<div class="cell">
<div class="label">checkbox — unchecked</div>
<div class="row">
<input type="checkbox" />
<span>Option A</span>
</div>
<div class="row">
<input type="checkbox" />
<span>Option B</span>
</div>
</div>

<div class="cell">
<div class="label">checkbox — checked</div>
<div class="row">
<input type="checkbox" checked />
<span>Selected</span>
</div>
<div class="row">
<input type="checkbox" checked />
<span>Also selected</span>
</div>
</div>

<div class="cell">
<div class="label">checkbox — disabled</div>
<div class="row">
<input type="checkbox" disabled />
<span>Disabled unchecked</span>
</div>
<div class="row">
<input type="checkbox" checked disabled />
<span>Disabled checked</span>
</div>
</div>

<div class="cell">
<div class="label">radio — unchecked</div>
<div class="row">
<input type="radio" name="group-a" />
<span>Choice 1</span>
</div>
<div class="row">
<input type="radio" name="group-a" />
<span>Choice 2</span>
</div>
</div>

<div class="cell">
<div class="label">radio — checked</div>
<div class="row">
<input type="radio" name="group-b" checked />
<span>Selected</span>
</div>
<div class="row">
<input type="radio" name="group-b" />
<span>Not selected</span>
</div>
</div>

<div class="cell">
<div class="label">radio — disabled</div>
<div class="row">
<input type="radio" name="group-c" disabled />
<span>Disabled</span>
</div>
<div class="row">
<input type="radio" name="group-c" checked disabled />
<span>Disabled checked</span>
</div>
</div>
</div>
</body>
</html>
67 changes: 67 additions & 0 deletions fixtures/test-html/L0/form-input-range.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Form: Input — Range & Color</title>
<style>
body {
margin: 0;
padding: 24px;
background: #fff;
color: #000;
font-family: system-ui, sans-serif;
font-size: 14px;
}

.label {
font-size: 11px;
color: #666;
padding-bottom: 4px;
}

.grid {
display: flex;
flex-direction: column;
gap: 24px;
}

.cell {
display: flex;
flex-direction: column;
}
</style>
</head>

<body>
<div class="grid">
<div class="cell">
<div class="label">range — default</div>
<input type="range" />
</div>
<div class="cell">
<div class="label">range — min=0 max=100 value=25</div>
<input type="range" min="0" max="100" value="25" />
</div>
<div class="cell">
<div class="label">range — min=0 max=100 value=75</div>
<input type="range" min="0" max="100" value="75" />
</div>
<div class="cell">
<div class="label">range — disabled</div>
<input type="range" value="50" disabled />
</div>
<div class="cell">
<div class="label">color</div>
<input type="color" value="#ff0000" />
</div>
<div class="cell">
<div class="label">date</div>
<input type="date" value="2026-01-15" />
</div>
<div class="cell">
<div class="label">time</div>
<input type="time" value="14:30" />
</div>
</div>
</body>
</html>
Loading
Loading