Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MediaQueryList 以下の記事を更新 #6769

Merged
merged 5 commits into from
Jul 13, 2022

Conversation

camiha
Copy link
Contributor

@camiha camiha commented Jul 9, 2022

  • Markdown へ移行
  • 誤字修正
  • リンク項目の更新

@camiha camiha requested a review from a team as a code owner July 9, 2022 15:03
@camiha camiha requested review from mfuji09 and removed request for a team July 9, 2022 15:03
@github-actions github-actions bot added the l10n-ja Issues related to Japanese content. label Jul 9, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Jul 9, 2022

Preview URLs

Flaws

URL: /ja/docs/Web/API/MediaQueryList
Title: MediaQueryList
on GitHub
Flaw count: 4

  • macros:
    • /ja/docs/Web/API/MediaQueryList/addListener does not exist but fell back to /en-US/docs/Web/API/MediaQueryList/addListener
    • /ja/docs/Web/API/MediaQueryList/removeListener does not exist but fell back to /en-US/docs/Web/API/MediaQueryList/removeListener
    • /ja/docs/Web/API/MediaQueryListListener does not exist but fell back to /en-US/docs/Web/API/MediaQueryList
    • /ja/docs/Web/API/MediaQueryListEvent does not exist but fell back to /en-US/docs/Web/API/MediaQueryListEvent

URL: /ja/docs/Web/API/MediaQueryList/change_event
Title: MediaQueryList: change イベント
on GitHub
Flaw count: 4

  • macros:
    • /ja/docs/Web/API/MediaQueryListEvent does not exist but fell back to /en-US/docs/Web/API/MediaQueryListEvent
    • wrong xref macro used (consider changing which macro you use)
    • wrong xref macro used (consider changing which macro you use)
    • /ja/docs/Web/API/MediaQueryListEvent does not exist but fell back to /en-US/docs/Web/API/MediaQueryListEvent

URL: /ja/docs/Web/API/MediaQueryList/matches
Title: MediaQueryList.matches
on GitHub
Flaw count: 2

  • macros:
    • /ja/docs/Web/API/MediaQueryListEvent does not exist but fell back to /en-US/docs/Web/API/MediaQueryListEvent
  • translation_differences:
    • Differences in the important macros (2 in common of 4 possible)

URL: /ja/docs/Web/API/MediaQueryList/media
Title: MediaQueryList.media
on GitHub
Flaw count: 1

  • macros:
    • /ja/docs/Web/API/MediaQueryListEvent does not exist but fell back to /en-US/docs/Web/API/MediaQueryListEvent

External URLs

URL: /ja/docs/Web/API/MediaQueryList
Title: MediaQueryList
on GitHub


URL: /ja/docs/Web/API/MediaQueryList/change_event
Title: MediaQueryList: change イベント
on GitHub

No new external URLs


URL: /ja/docs/Web/API/MediaQueryList/matches
Title: MediaQueryList.matches
on GitHub

No new external URLs


URL: /ja/docs/Web/API/MediaQueryList/media
Title: MediaQueryList.media
on GitHub

No new external URLs

(this comment was updated 2022-07-11 14:00:49.062020)

Copy link
Collaborator

@mfuji09 mfuji09 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

指摘した点の修正をお願いします。
特に、最新の英語版の比較して、変化しているところの改訂を併せてお願いします。

---
{{APIRef("CSSOM")}}

A **`MediaQueryList`** オブジェクトは文書に適用されている[メディアクエリ](/ja/docs/Web/CSS/Media_Queries)の情報を格納し、文書の状態に対する中間かつイベントドリブンのマッチングに対応します。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

先頭の A は不要と思われます。
また、長音のない「メディアクエリ」を「メディアクエリー」に修正してください。(この文章の以下も同様です)。

Suggested change
A **`MediaQueryList`** オブジェクトは文書に適用されている[メディアクエリ](/ja/docs/Web/CSS/Media_Queries)の情報を格納し、文書の状態に対する中間かつイベントドリブンのマッチングに対応します。
**`MediaQueryList`** オブジェクトは文書に適用されている[メディアクエリー](/ja/docs/Web/CSS/Media_Queries)の情報を格納し、文書の状態に対する中間かつイベントドリブンのマッチングに対応します。


`MediaQueryList` は {{DOMxRef("Window.matchMedia", "matchMedia()")}} を {{DOMxRef("window")}} オブジェクト上で呼び出すことで作成することができます。結果として得られるオブジェクトは、メディアクエリの状態が変化したとき (つまり、メディアクエリのテストが `true` の評価が開始または停止したとき) に、リスナーへの通知の送信を処理します。

これにより、定期的に値をポーリングするのではなく、文書を観察してメディアクエリが変更されたときに検出することが可能になり、メディアクエリの状態に基づいて文書にプログラム的に変更を加えることができるので、アダプティブデザインにとても便利です。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ポーリングを行わないための方策ですので、「観察」よりも「監視」と訳した方が良いと思います。

Suggested change
これにより、定期的に値をポーリングするのではなく、文書を観察してメディアクエリが変更されたときに検出することが可能になり、メディアクエリの状態に基づいて文書にプログラム的に変更を加えることができるので、アダプティブデザインにとても便利です。
これにより、定期的に値をポーリングするのではなく、文書を監視してメディアクエリが変更されたときに検出することが可能になり、メディアクエリの状態に基づいて文書にプログラム的に変更を加えることができるので、アダプティブデザインにとても便利です。

_`MediaQueryList` インターフェイスは親インターフェイスである {{DOMxRef("EventTarget")}} からプロパティを継承しています。_

- {{DOMxRef("MediaQueryList.matches", "matches")}}{{ReadOnlyInline}}
- : {{jsxref("Boolean")}} で、 `true` であれば {{DOMxRef("document")}} が現在メディアクエリリストに一致しており、 `false` であればそうではありません。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

英語版では {{jsxref("Boolean")}} ではなく boolean と書かれています。実際、 {{jsxref("Boolean")}} は誤りですので修正をお願いします。

- {{DOMxRef("MediaQueryList.matches", "matches")}}{{ReadOnlyInline}}
- : {{jsxref("Boolean")}} で、 `true` であれば {{DOMxRef("document")}} が現在メディアクエリリストに一致しており、 `false` であればそうではありません。
- {{DOMxRef("MediaQueryList.media", "media")}}{{ReadOnlyInline}}
- : {{DOMxRef("DOMString")}} で、シリアライズされたメディアクエリを表します。
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

原文では {{DOMxRef("DOMString")}} ではなく string となっていますので、修正をお願いします。

Suggested change
- : {{DOMxRef("DOMString")}} で、シリアライズされたメディアクエリを表します
- : 文字列で、シリアライズされたメディアクエリーを表します


_`MediaQueryList` インターフェイスは親インターフェイスである {{DOMxRef("EventTarget")}} からメソッドを継承しています。_

- {{DOMxRef("MediaQueryList.addListener", "addListener()")}}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

英語版では deprecated のマークがついています。
英語版の最新記事に合わせるようにお願いします。


`matches` の値が変化した場合は、 `MediaQueryList` で発生する {{domxref("MediaQueryList.change_event", "change")}} イベントを監視することで通知を受けることができます。

## 構文
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

英語版のプロパティページでは「構文」の節が削除されていますので、削除するようお願いします。
それ以外の部分も、最新の英語版に合わせてください。

@camiha camiha requested a review from mfuji09 July 11, 2022 14:02
@camiha
Copy link
Contributor Author

camiha commented Jul 11, 2022

レビュー頂きありがとうございます。ご指摘いただいた点を修正いたしました。
最新の英語版と同期する点については存じ上げず、
多くをご指摘いただくこととなってしまいました。重ねてお礼申し上げます。

Copy link
Collaborator

@mfuji09 mfuji09 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OKです。

@mfuji09 mfuji09 merged commit f7d5e8d into mdn:main Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
l10n-ja Issues related to Japanese content.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants