fix(zh-cn): sync min-width auto description with upstream#36236
Open
janfeise wants to merge 1 commit into
Open
fix(zh-cn): sync min-width auto description with upstream#36236janfeise wants to merge 1 commit into
janfeise wants to merge 1 commit into
Conversation
Contributor
|
Preview URLs (1 page) Flaws (1) Found an unexpected or unresolvable flaw? Please report it here. URL:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
同步
min-width属性中auto值的中文翻译,补充了 flex 和 grid 子项自动最小尺寸的完整说明。更新内容:
auto值的基础行为(块级、行内、表格布局等解析为0)width)aspect-ratio传递的尺寸min-content尺寸0Motivation
开发时查阅文档发现,
min-width: auto值的中文说明较为简略,且与英文原版文档存在较大差异,因此对其进行了更新。英文原版文档中对
min-width: auto在 flex/grid 上下文中的行为有详细说明,但当前中文翻译缺失了以下关键信息:aspect-ratio传递尺寸的说明这些内容对于理解现代 CSS 布局(尤其是 flex 和 grid 防止溢出的行为)非常重要。此 PR 旨在补全翻译,使中文文档与英文文档保持同步,帮助中文开发者准确理解
min-width: auto在不同布局上下文中的表现。Additional details
参考英文原文:
files/en-us/web/css/reference/properties/min-width/index.mdauto值说明中的 flex/grid 行为部分相关 CSS 规范:
Related issues and pull requests
Relates to: #sync-min-width-auto(当前同步分支)