W3Schools 튜토리얼을 P-Reinforce v3.1 포맷으로 위키화(영어 본문, 한/영 섹션 헤더). - Topic_HTML: 59문서 (튜토리얼+예제, 레퍼런스/메타 제외) - Topic_CSS: 190문서 (메인 + Advanced/Flexbox/Grid/RWD 전체) - Topic_JavaScript: 120문서 (코어 언어; Temporal/DOM상세/BOM/WebAPI/AJAX/jQuery/Graphics 등은 후속) 각 폴더 00_INDEX.md(MOC) 포함. 코드 verbatim, 미확인분은 "Not found in source" 표기. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
5.9 KiB
id, title, category, status, verification_status, canonical_id, aliases, duplicate_of, source_trust_level, confidence_score, created_at, updated_at, review_reason, merge_history, tags, raw_sources, applied_in, github_commit
| id | title | category | status | verification_status | canonical_id | aliases | duplicate_of | source_trust_level | confidence_score | created_at | updated_at | review_reason | merge_history | tags | raw_sources | applied_in | github_commit | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| css-radial-gradients | CSS Radial Gradients | Frontend | draft | conceptual |
|
B | 0.9 | 2026-06-23 | 2026-06-23 |
|
|
CSS Radial Gradients
🎯 한 줄 통찰 (One-line insight)
A radial gradient (radial-gradient()) is defined by its center and spreads color stops outward; by default it is an ellipse, sized farthest-corner, centered, and it is applied through the background-image property. [S1]
🧠 핵심 개념 (Core concepts)
- Radial = defined by a center point — a radial gradient is defined by its center and radiates the color transition outward. [S1]
- At least two color stops — like a linear gradient, a radial gradient must have at least two color stops. [S1]
- Default shape, size, and position — the defaults are shape =
ellipse, size =farthest-corner, position =center. [S1] - Color-stop spacing — color stops can be evenly spaced (the default) or assigned percentages to space them differently. [S1]
- Shape and size are controllable — shape can be
circleorellipse, and size keywords control how far the gradient extends. [S1]
🧩 추출된 패턴 (Extracted patterns)
- Even-stops pattern —
radial-gradient(color1, color2, color3)for default evenly spaced stops. [S1] - Spaced-stops pattern — assign percentages (
color 5%,color 15%...) to control stop placement. [S1] - Shape pattern — prepend
circle(orellipse) to force the shape. [S1] - Size-keyword pattern — use
closest-side/farthest-side/closest-corner/farthest-cornerplusat <position>to control extent and center. [S1] - Repeating pattern —
repeating-radial-gradient()repeats a percentage-defined sequence. [S1]
📖 세부 내용 (Details)
Syntax [S1]
background-image: radial-gradient(shape size at position, start-color, ..., last-color);
By default the shape is ellipse, the size is farthest-corner, and the position is center.
Evenly Spaced Color Stops (this is default) [S1]
#grad {
background-image: radial-gradient(red, yellow, green);
}
Differently Spaced Color Stops [S1]
#grad {
background-image: radial-gradient(red 5%, yellow 15%, green 60%);
}
Set Shape [S1]
The shape parameter defines the shape. It can take the value circle or ellipse; the default value is ellipse. This example uses circle:
#grad {
background-image: radial-gradient(circle, red, yellow, green);
}
Use of Different Size Keywords [S1]
The size parameter defines the size of the gradient. It can take four values: closest-side, farthest-side, closest-corner, and farthest-corner.
#grad1 {
background-image: radial-gradient(closest-side at 70% 60%, red, yellow, black);
}
#grad2 {
background-image: radial-gradient(farthest-side at 70% 60%, red, yellow, black);
}
Repeating a radial-gradient [S1]
The repeating-radial-gradient() function is used to repeat radial gradients.
#grad {
background-image: repeating-radial-gradient(red, yellow 10%, green 15%);
}
🛠️ 적용 사례 (Applied in summary)
The page's own demonstrations (the #grad, #grad1, and #grad2 elements showing even/spaced stops, circle shape, size keywords, and repeating gradients) serve as the applied examples. No external project/commit applications found in the source.
💻 코드 패턴 (Code patterns)
Default radial gradient (language: CSS):
#grad {
background-image: radial-gradient(red, yellow, green);
}
Circle with positioned size keyword:
#grad1 {
background-image: radial-gradient(closest-side at 70% 60%, red, yellow, black);
}
Repeating radial gradient:
#grad {
background-image: repeating-radial-gradient(red, yellow 10%, green 15%);
}
⚖️ 비교 및 선택 기준 (Comparison & decision criteria)
circlevsellipse—ellipseis the default and stretches to the box's aspect ratio; choosecirclewhen a perfectly round transition is wanted. [S1]- Size keywords —
closest-side,farthest-side,closest-corner, andfarthest-cornerdecide where the gradient's ending shape meets the box;farthest-corneris the default. [S1] - Even vs differently spaced stops — omit percentages for evenly spaced stops; supply percentages to bias where each color sits. [S1]
- Single vs repeating — use
repeating-radial-gradient()when the percentage sequence should tile outward. [S1]
⚖️ 모순 및 업데이트 (Contradictions & updates)
No contradictions found in the source.
✅ 검증 상태 및 신뢰도
- 상태: draft
- 검증 단계: conceptual (실제 적용 사례 발견 시 applied/validated로 승격 가능)
- 출처 신뢰도: B (W3Schools — widely used educational reference, not a primary standards body)
- 신뢰 점수: 0.90
- 중복 검사 결과: 신규 생성 (New discovery)
🔗 지식 그래프 (Knowledge Graph)
- 상위/루트: CSS Tutorial
- 관련 개념: CSS Linear Gradients, CSS Conic Gradients, CSS Box Shadow
- 참조 맥락: Referenced whenever a center-out color background (spotlight/glow effect) is needed via
background-image.
📚 출처 (Sources)
- [S1] W3Schools — CSS Radial Gradients — https://www.w3schools.com/css/css3_gradients_radial.asp
📝 변경 이력 (Change history)
- 2026-06-23: Initial draft synthesized from the W3Schools "CSS Radial Gradients" page (Astra wiki-curation, P-Reinforce v3.1 format).