-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Parent: #41
Goal
Implement CSS gradient functions so that elements can use gradient backgrounds (linear, radial, conic, and repeating variants).
Prerequisites
- Step 2 (CSS Transforms) — shares the same render pipeline
Implementation
- Parse
linear-gradient(),radial-gradient(),conic-gradient()and theirrepeating-*variants - Add
Gradientvariant to CSSValueenum with color stops representation - Implement fragment shader evaluation: compute color per-pixel from gradient parameters
- Support gradients in
background-imageandbackgroundshorthand properties - Handle multiple color stops, color hints, and angle/position syntax
Tests
- Parsing tests for all gradient types and repeating variants
- Color stop interpolation tests
- Fragment shader output correctness tests
- Integration tests with
background-imageandbackgroundshorthand
Acceptance Criteria
- All gradient functions parse correctly with full CSS syntax support
- Gradients render correctly in the fragment shader
- Repeating gradients tile properly
- Gradients work as values for
background-imageandbackground
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels