From c49b4fdabfa3b40a9c2d3ec6740ba40ebe7b2685 Mon Sep 17 00:00:00 2001 From: Leonid Vinogradov Date: Wed, 25 Dec 2024 02:58:47 +0300 Subject: [PATCH] Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .../styling_basics/backgrounds_and_borders/index.md | 3 ++- .../styling_basics/backgrounds_and_borders/index.md | 6 ++++-- .../client-side_apis/video_and_audio_apis/index.md | 3 ++- files/ja/web/css/css_backgrounds_and_borders/index.md | 4 +++- .../styling_basics/backgrounds_and_borders/index.md | 3 ++- .../styling_basics/backgrounds_and_borders/index.md | 6 ++++-- .../client-side_apis/video_and_audio_apis/index.md | 3 ++- .../extensions/forms/ui_pseudo-classes/index.md | 10 +++++----- .../using_multiple_backgrounds/index.md | 3 ++- .../reference/global_objects/math/atan2/index.md | 2 +- 10 files changed, 27 insertions(+), 16 deletions(-) diff --git a/files/es/learn_web_development/core/styling_basics/backgrounds_and_borders/index.md b/files/es/learn_web_development/core/styling_basics/backgrounds_and_borders/index.md index b140092e5e742b..1e41c6109474b6 100644 --- a/files/es/learn_web_development/core/styling_basics/backgrounds_and_borders/index.md +++ b/files/es/learn_web_development/core/styling_basics/backgrounds_and_borders/index.md @@ -47,7 +47,8 @@ La propiedad {{cssxref ("background")}} de CSS es una propiedad abreviada de una 105deg, rgba(255, 255, 255, 0.2) 39%, rgba(51, 56, 57, 1) 96% - ) center center / 400px 200px no-repeat, + ) + center center / 400px 200px no-repeat, url(big-star.png) center no-repeat, rebeccapurple; } diff --git a/files/ja/learn_web_development/core/styling_basics/backgrounds_and_borders/index.md b/files/ja/learn_web_development/core/styling_basics/backgrounds_and_borders/index.md index 3258c0d91b1743..1b24ce37ce04d8 100644 --- a/files/ja/learn_web_development/core/styling_basics/backgrounds_and_borders/index.md +++ b/files/ja/learn_web_development/core/styling_basics/backgrounds_and_borders/index.md @@ -44,7 +44,8 @@ CSS の {{cssxref("background")}} プロパティは、このレッスンで説 105deg, rgb(255 255 255 / 20%) 39%, rgb(51 56 57 / 100%) 96% - ) center center / 400px 200px no-repeat, + ) + center center / 400px 200px no-repeat, url(image.png) center no-repeat, rebeccapurple; } @@ -416,7 +417,8 @@ background-position: 105deg, rgb(255 255 255 / 20%) 39%, rgb(51 56 57 / 100%) 96% - ) center center / 400px 200px no-repeat, + ) + center center / 400px 200px no-repeat, url(https://mdn.github.io/shared-assets/images/examples/big-star.png) center no-repeat, rebeccapurple; diff --git a/files/ja/learn_web_development/extensions/client-side_apis/video_and_audio_apis/index.md b/files/ja/learn_web_development/extensions/client-side_apis/video_and_audio_apis/index.md index 1bc0d08000cd48..b836503dd1d594 100644 --- a/files/ja/learn_web_development/extensions/client-side_apis/video_and_audio_apis/index.md +++ b/files/ja/learn_web_development/extensions/client-side_apis/video_and_audio_apis/index.md @@ -147,7 +147,8 @@ HTML のインデックスファイルを開いてください。多くの機能 font-family: "HeydingsControlsRegular"; src: url("fonts/heydings_controls-webfont.eot"); src: - url("fonts/heydings_controls-webfont.eot?#iefix") format("embedded-opentype"), + url("fonts/heydings_controls-webfont.eot?#iefix") + format("embedded-opentype"), url("fonts/heydings_controls-webfont.woff") format("woff"), url("fonts/heydings_controls-webfont.ttf") format("truetype"); font-weight: normal; diff --git a/files/ja/web/css/css_backgrounds_and_borders/index.md b/files/ja/web/css/css_backgrounds_and_borders/index.md index 1a40330b05f7de..5e3ea7b91b0d31 100644 --- a/files/ja/web/css/css_backgrounds_and_borders/index.md +++ b/files/ja/web/css/css_backgrounds_and_borders/index.md @@ -44,7 +44,9 @@ div { transparent 60%, currentcolor 60% 70%, transparent 70% - ), linear-gradient(45deg, currentcolor, white), linear-gradient(transparent, transparent); + ), + linear-gradient(45deg, currentcolor, white), + linear-gradient(transparent, transparent); /* 3 枚目の透明な背景画像が追加され、背景色が透けて見えるスペースが確保された */ background-color: currentcolor; background-position: center; diff --git a/files/ru/learn_web_development/core/styling_basics/backgrounds_and_borders/index.md b/files/ru/learn_web_development/core/styling_basics/backgrounds_and_borders/index.md index cb8ee1c4124d2f..12a5099dba2ff9 100644 --- a/files/ru/learn_web_development/core/styling_basics/backgrounds_and_borders/index.md +++ b/files/ru/learn_web_development/core/styling_basics/backgrounds_and_borders/index.md @@ -22,7 +22,8 @@ CSS-свойство {{cssxref ("background")}} является сокраще 105deg, rgba(255, 255, 255, 0.2) 39%, rgba(51, 56, 57, 1) 96% - ) center center / 400px 200px no-repeat, + ) + center center / 400px 200px no-repeat, url(big-star.png) center no-repeat, rebeccapurple; } diff --git a/files/zh-cn/learn_web_development/core/styling_basics/backgrounds_and_borders/index.md b/files/zh-cn/learn_web_development/core/styling_basics/backgrounds_and_borders/index.md index f6cfd3ca24abe7..59f0e96fa3d971 100644 --- a/files/zh-cn/learn_web_development/core/styling_basics/backgrounds_and_borders/index.md +++ b/files/zh-cn/learn_web_development/core/styling_basics/backgrounds_and_borders/index.md @@ -41,7 +41,8 @@ CSS {{cssxref("background")}} 属性是本课程中我们将遇到的一些普 105deg, rgba(255, 255, 255, 0.2) 39%, rgba(51, 56, 57, 1) 96% - ) center center / 400px 200px no-repeat, + ) + center center / 400px 200px no-repeat, url(image.png) center no-repeat, rebeccapurple; } @@ -407,7 +408,8 @@ background-position: 105deg, rgb(255 255 255 / 20%) 39%, rgb(51 56 57 / 100%) 96% - ) center center / 400px 200px no-repeat, + ) + center center / 400px 200px no-repeat, url(https://mdn.github.io/shared-assets/images/examples/big-star.png) center no-repeat, rebeccapurple; diff --git a/files/zh-cn/learn_web_development/extensions/client-side_apis/video_and_audio_apis/index.md b/files/zh-cn/learn_web_development/extensions/client-side_apis/video_and_audio_apis/index.md index 1738977d5104b3..4fcfe487d00e56 100644 --- a/files/zh-cn/learn_web_development/extensions/client-side_apis/video_and_audio_apis/index.md +++ b/files/zh-cn/learn_web_development/extensions/client-side_apis/video_and_audio_apis/index.md @@ -143,7 +143,8 @@ HTML 提供了用于在文档中嵌入富媒体的元素:{{htmlelement("video" font-family: "HeydingsControlsRegular"; src: url("fonts/heydings_controls-webfont.eot"); src: - url("fonts/heydings_controls-webfont.eot?#iefix") format("embedded-opentype"), + url("fonts/heydings_controls-webfont.eot?#iefix") + format("embedded-opentype"), url("fonts/heydings_controls-webfont.woff") format("woff"), url("fonts/heydings_controls-webfont.ttf") format("truetype"); font-weight: normal; diff --git a/files/zh-cn/learn_web_development/extensions/forms/ui_pseudo-classes/index.md b/files/zh-cn/learn_web_development/extensions/forms/ui_pseudo-classes/index.md index 71c27496bb8af9..6ceb172d2a273b 100644 --- a/files/zh-cn/learn_web_development/extensions/forms/ui_pseudo-classes/index.md +++ b/files/zh-cn/learn_web_development/extensions/forms/ui_pseudo-classes/index.md @@ -455,11 +455,11 @@ HTML 的一个片段如下,注意其中的 readonly 属性: ```css :is( - input:read-only, - input:-moz-read-only, - textarea:-moz-read-only, - textarea:read-only - ) { + input:read-only, + input:-moz-read-only, + textarea:-moz-read-only, + textarea:read-only +) { border: 0; box-shadow: none; background-color: white; diff --git a/files/zh-tw/web/css/css_backgrounds_and_borders/using_multiple_backgrounds/index.md b/files/zh-tw/web/css/css_backgrounds_and_borders/using_multiple_backgrounds/index.md index 22169c8c45e195..7e81c852265836 100644 --- a/files/zh-tw/web/css/css_backgrounds_and_borders/using_multiple_backgrounds/index.md +++ b/files/zh-tw/web/css/css_backgrounds_and_borders/using_multiple_backgrounds/index.md @@ -33,7 +33,8 @@ slug: Web/CSS/CSS_backgrounds_and_borders/Using_multiple_backgrounds ```css .multi_bg_example { - background-image: url(firefox.png), url(bubbles.png), linear-gradient(to right, rgba(30, 75, 115, 1), rgba(255, 255, 255, 0)); + background-image: url(firefox.png), url(bubbles.png), + linear-gradient(to right, rgba(30, 75, 115, 1), rgba(255, 255, 255, 0)); background-repeat: no-repeat, no-repeat, no-repeat; diff --git a/files/zh-tw/web/javascript/reference/global_objects/math/atan2/index.md b/files/zh-tw/web/javascript/reference/global_objects/math/atan2/index.md index 2864c8317f3a5f..d3b57809130edf 100644 --- a/files/zh-tw/web/javascript/reference/global_objects/math/atan2/index.md +++ b/files/zh-tw/web/javascript/reference/global_objects/math/atan2/index.md @@ -88,7 +88,7 @@ function format(template, ...args) { ...args.map((num) => (Object.is(num, -0) ? "-0" - : formattedNumbers.get(num) ?? String(num) + : (formattedNumbers.get(num) ?? String(num)) ).padEnd(5), ), );