-
指摘をする際は、必ず「理由」と「解決策」をセットにする(「この書き方はダメです」だけではレビューにならない)。
-
[MUST]は、仕様・コーディング規約に反するもの/バグが起きているもの/将来的に深刻な問題になりそうなものを優先して扱う。次点として「改善したほうが良いもの」を挙げる。 -
教義的になりすぎない。趣味嗜好が入りうる指摘は
IMOとして扱う。 -
私は flex と grid の使い分けについて普段発信しているが、レビューでは挙動に問題がなければ基本的にコメントしない。
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
| fit-text { | |
| display: block flow; | |
| &::part(svg) { | |
| display: block flow; | |
| inline-size: 100%; | |
| block-size: auto; | |
| } | |
| &::part(text) { |
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
| /** | |
| * 要素の位置情報を監視してCSS変数として:rootに設定するWeb Component | |
| * AnchorPositioningのような位置指定に使用可能 | |
| * | |
| * @example | |
| * ```html | |
| * <rect-observer var-prefix="global-header"> | |
| * <header>...</header> | |
| * </rect-observer> | |
| * ``` |
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
| /** | |
| * Add ARIA attributes to table elements and their children. | |
| * When the display property is changed with CSS, the element may not be recognized as a table. | |
| * @see https://adrianroselli.com/2018/05/functions-to-add-aria-to-tables-and-lists.html | |
| * @param {HTMLElement} container - Container element to apply ARIA attributes to | |
| * @returns {void} | |
| */ | |
| function addTableARIA(container: HTMLElement): void { | |
| const tables = container.querySelectorAll<HTMLTableElement>("table"); | |
| for (const table of tables) { |
ICS MEDIAで新しく掲載された以下の記事を読みました。
https://ics.media/entry/250520/
大前提として、私は ICS MEDIA の記事を愛読していますし、池田さんをはじめとして ICS で働くエンジニアの方々とはリアルで親交もあり、尊敬しています。
上述した「@scope入門」という記事に関しても @scope の基礎的な使い方が纏まっており、黎明期ゆえに文献の少ない @scope にフィーチャーした参考記事としては質の高い記事であることは間違いありません。
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
| module.exports = { | |
| rules: { | |
| 'unit-disallowed-list': [ | |
| [ | |
| 'vw', | |
| 'vh', | |
| 'vi', | |
| 'vb', | |
| 'vmin', | |
| 'vmax' |
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
Show hidden characters
| { | |
| "container": { | |
| "prefix": "container", | |
| "body": [ | |
| "--_container-size-min: $1;", | |
| "--_container-size-max: $2;", | |
| "--_to-cqi-min: calc(tan(atan2(1px, var(--_container-size-min))) * 100cqi);", | |
| "--_to-cqi-max: calc(tan(atan2(1px, var(--_container-size-max))) * 100cqi);", | |
| "container: $3 / inline-size;", | |
| "@container style(--debug: true) {", |
- フォントは Web サイトの印象に直結するため、一概にこれが良いとは言えない。
- 特にこれと言った指定がされていない場合は
font-family: sans-serifのみで良い。- Windows 11/10 では 2025 年のアップデートにより Noto Sans JP が標準搭載された。色々と問題があった游ゴシックの呪縛から解放されたのは大きい。
- Android はメーカーにより削除されている可能性はあるが、そうでない場合は原則的に Noto Sans CJK JP が適用される。
- Mac/iOS はヒラギノ角ゴ ProN が適用される。
- アップデートによるフォントの変更の懸念はあるものの、ディスレクシアの方々は UD デジタル教科書体などの読みやすいフォントを設定している可能性があるため、アクセシビリティの観点では
font-family: sans-serifの指定を推奨する。
NewerOlder