Skip to content

Commit

Permalink
fix up rules
Browse files Browse the repository at this point in the history
  • Loading branch information
yin1999 committed Feb 10, 2025
1 parent d5cd948 commit 2c4a332
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion files/zh-cn/.markdownlint.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
{
"name": "gfm-alert",
"message": "Use the GFM syntax: https://developer.mozilla.org/zh-CN/docs/MDN/Writing_guidelines/Howto/Markdown_in_MDN#备注、警告和标注",
"searchPattern": "/^ *> \\*\\*(备注|警告|标注):\\*\\*(?! [[{`_*])/gm",
"searchPattern": "/^ *> \\*\\*(备注|警告|标注):\\*\\*(?! ?[[{`_*])/gm",
"searchScope": "text",
},
{
Expand Down
8 changes: 0 additions & 8 deletions files/zh-cn/web/css/flex-basis/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,6 @@ flex-basis: unset;

- : 基于 flex 的元素的内容自动调整大小。

> **备注:**由于最初规范中没有包括这个值,在一些早期的浏览器实现的 flex 布局中,content 值无效,可以利用设置 ([width](https://drafts.csswg.org/css2/visudet.html#propdef-width) 或 [height](https://drafts.csswg.org/css2/visudet.html#propdef-height)) 为 auto 达到同样的效果。

> **备注:** **简史**
>
> - 最初,"flex-basis:auto" 的含义是 "参照我的`width`和`height`属性".
> - 在此之后,"flex-basis:auto" 的含义变成了自动尺寸,而 "main-size" 变成了 "参照我的`width`和`height`属性"。实际执行于 [bug 1032922](https://bugzilla.mozilla.org/show_bug.cgi?id=1032922).
> - 然后呢,这个更改又在 [bug 1093316](https://bugzilla.mozilla.org/show_bug.cgi?id=1093316) 中被撤销了,所以 "auto" 变回了原来的含义; 而一个新的关键字 'content' 变成了自动尺寸。 ([Firefox bug 1105111](https://bugzil.la/1105111) 包括了增加这个关键字).

### 规范

{{csssyntax}}
Expand Down
2 changes: 1 addition & 1 deletion files/zh-tw/.markdownlint.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
{
"name": "gfm-alert",
"message": "Use the GFM syntax: https://developer.mozilla.org/en-US/docs/MDN/Writing_guidelines/Howto/Markdown_in_MDN#notes_warnings_and_callouts",
"searchPattern": "/^ *> \\*\\*(備註|警告|標註):\\*\\*(?! [[{`_*])/gm",
"searchPattern": "/^ *> \\*\\*(備註|警告|標註):\\*\\*(?! ?[[{`_*])/gm",
"searchScope": "text",
},
{
Expand Down

0 comments on commit 2c4a332

Please sign in to comment.