[KongchangAI]
Concept层叠样式表 / Cascading Style Sheets

CSS

A language used to describe the presentation style of HTML documents. Through mechanisms such as pseudo-class selectors and form state management, CSS can also implement complex interactive logic.

Core Facts

Timeline (last 90 days)

Oct 24

A 3D parallax effect can be achieved using CSS's transform: perspective() and translateZ(), or by listening to mouse/scroll position to change the displacement speed of different layers, without needing heavy libraries like WebGL or Three.js.

Unverified50%
Oct 22

Micro-interactions involve parameters along the time dimension, including duration, easing, delay, displacement distance and opacity changes, which manifest in CSS as concrete syntax such as transition, @keyframes and cubic-bezier().

Unverified50%
Oct 22

When border-radius is set using percentages, the horizontal radius is calculated based on the element's width and the vertical radius based on the element's height, producing elliptical corners when the width-to-height ratio is not 1:1.

Unverified50%
Oct 22

Browser games are typically built on HTML5, CSS, and JavaScript (or TypeScript), can use the Canvas API for 2D rendering, call the GPU via WebGL for 3D graphics, and use the Web Audio API for sound effects.

Unverified50%
Oct 21

The CSS progress() function takes a value, a start point and an end point and returns a unitless number between 0 and 1, calculated as (value - start) / (end - start) and clamped between 0 and 1.

Unverified50%
Oct 19

Ngezi K.D.H.S. Study Portal is built using HTML, CSS, and vanilla JavaScript.

Unverified50%
Oct 17

Code Layers allows the AI Agent and human developers to turn specific design layers into interactive React or CSS code, and supports two-way sync: cloning an active code repository into Figma for editing, then syncing changes back to the core codebase.

Unverified50%
Oct 15

CSS's light-dark() color function allows both light and dark values to be given in the same property declaration, and the browser automatically chooses based on the currently effective color scheme.

Unverified50%
Oct 15

prefers-reduced-motion is a user preference setting in CSS media queries; when the user enables reduced motion at the operating system level, the browser exposes this flag to the page

Unverified50%
Oct 14

In testing, Gemini 4 Argon was asked to rebuild a screenshot of a landing page nearly 6000 pixels tall using pure static HTML and CSS, and it measured via self-written scripts, rendered with a headless browser, generated pixel-level difference heatmaps, and self-corrected over six consecutive rounds, ultimately achieving a nearly identical result.

Unverified60%

40 more timeline events

All Facts (20)

Verified

When large models generate dynamic videos, they are more likely generating code that describes the animation (such as Canvas, SVG, CSS animations, or animation frameworks) rather than directly rendering pixel-level video.

65%
Verified

The cubic-bezier() function in CSS animations, the pen tool in Adobe Illustrator, and TrueType outlines in font rendering are all typical applications of Bézier curves

65%
Verified

CSS's design principle is to silently ignore and continue parsing when it encounters an unrecognized property or value, rather than throwing an error like a programming language would.

65%
Unverified

outline相比border不占据任何布局空间,不会影响元素的盒模型计算

95%
Unverified

在Flexbox和Grid出现之前,开发者主要依赖float属性进行布局,该属性原本设计用于文字环绕图片

90%
Unverified

CSS诞生于1996年,最初是为了给学术文档添加样式,而非构建复杂的应用界面

90%
Unverified

background-position中写top等单个关键字时,浏览器会自动补全另一个方向为center

90%
Unverified

outline支持outline-offset属性,可以设置负值让轮廓向内收缩

90%
Unverified

CSS中box-shadow、text-shadow和border-color的默认值就是当前元素的color值,不需要显式声明currentColor

90%
Unverified

rebeccapurple是CSS历史上唯一一个以真实人物命名的颜色关键字

90%
Unverified

CSS颜色函数中,颜色值超出范围时会自动裁剪(gamut mapping):大于1的值认为是1,小于0的值认为是0

85%
Unverified

早期浏览器在transparent颜色过渡时会产生灰色阴影,原因是transparent被解析为rgba(0,0,0,0),插值时黑色通道参与了计算

85%
Unverified

background-clip: text是目前实现CSS文字渐变效果的唯一方式

80%
Unverified

CSS正在从纯粹的样式描述语言进化为具备逻辑判断能力的样式编程语言

70%
Unverified

After setting CSS's field-sizing: content, the textarea automatically grows taller as the user types more text, rather than showing an internal scrollbar.

60%
Unverified

The CSS ease easing function corresponds to the cubic Bézier curve cubic-bezier(0.25, 0.1, 0.25, 1.0).

60%
Unverified

CSS Zen Garden demonstrated in the early 2000s that the same HTML could achieve completely different visual effects by switching stylesheets

60%
Unverified

The CSS property for angular gradients is conic-gradient(), which gained broad support from mainstream browsers around 2020.

60%
Unverified

将CSS和JavaScript内联到单个HTML文件中,虽然牺牲了代码可维护性,但实现了一个文件即整个网站的零障碍部署

60%
Unverified

前端的核心三件套是HTML(定义页面结构)、CSS(控制视觉样式)和JavaScript(实现交互逻辑)

60%

Source Articles