CSS Cascade Layers
Control the cascade order with @layer, keep specificity low, and understand how unlayered styles fit in.
Focused explanations and longer guides, with worked scenarios, common mistakes and interview exercises across every chapter.
Showing 121–144 of 825 articles
Control the cascade order with @layer, keep specificity low, and understand how unlayered styles fit in.
Support light and dark themes with prefers-color-scheme and custom properties, and avoid the flash of the wrong theme.
Use flexbox for one-dimensional flows and grid for two-dimensional layouts, and know when each is the simpler tool.
Understand the default display types, how they affect sizing and flow, and why some properties are ignored on inline elements.
Style for print with @media print, hide navigation, and control page breaks so documents read well on paper.
Truncate text with an ellipsis, clamp multiple lines, and fix the flexbox case where truncation refuses to happen.
Animate transform and opacity for smooth motion, use transitions and keyframes, and respect reduced-motion preferences.
Use ? extends T for producers and ? super T for consumers, and understand why List<String> is not a List<Object>.
Know which array methods change the original in place and which return a new array, and pick the right one to avoid shared-state bugs.
Parse and format dates without timezone surprises: zero-based months, date-only versus date-time parsing, and why UTC storage avoids drift.
Why 0.1 + 0.2 is not 0.3, where safe integer range ends, and when BigInt is the right tool for large identifiers and money.
Destructure objects with renamed bindings and defaults, and learn why only undefined triggers a default while null keeps its value.
Short-circuit safely with optional chaining and choose ?? over || when 0, empty strings and false are valid values.
Race a promise against a timer to enforce a deadline, and clean up the timer plus the losing work instead of leaving it running.
Why a global or sticky RegExp can alternate between matching and failing, and how lastIndex and the g/y flags interact with test and exec.
Use spread and rest correctly, and avoid the shallow-copy trap where nested objects are still shared between the original and the copy.
Create unique property keys, customize object behavior with well-known symbols, and understand why symbols vanish from JSON and Object.keys.
Understand why ConfigMap changes reach volumes but not environment variables, and how to roll a Deployment deliberately.
Share scratch space between containers in a pod with emptyDir, choose the backing medium, and bound its size.
Route traffic with GatewayClass, Gateway and HTTPRoute, and understand how the Gateway API improves on Ingress.
Scale replicas from metrics with the HPA, set sensible targets, and stabilize against flapping.
Run setup and dependency waits in init containers before the app starts, and keep startup logic out of the app itself.
Enforce pod hardening with the Pod Security Admission levels, and migrate workloads off the removed PodSecurityPolicy.
Spread replicas across zones and nodes with topology spread constraints, and balance availability against scheduling failure.
No notes match that… try another filter.