レスポンシブ実装の判断基準を明確にし、不要なブレイクポイントとコード量を最小化する。 CSS はブラウザへの「提案」であり、厳密な命令ではない。ブラウザに委ねられる仕事は委ねる。
レスポンシブ対応は以下の優先順序で検討する。上位で解決できるなら下位は使わない。
font-family: sans-serif のみで良い。
font-family: sans-serif の指定を推奨する。| name | animations |
|---|---|
| description | UI アニメーションの要否判断、動き方・見せ方・実装方針の提案、パフォーマンスとアクセシビリティのレビューを行う。対象は hover, active, focus, popover, tooltip, dropdown, dialog, tab, segmented control, card, button, toast, accordion, carousel, scroll-linked animation, View Transitions など。 |
以下のようなタスクでこの Skill を使うこと。
ICS MEDIAで新しく掲載された以下の記事を読みました。
https://ics.media/entry/250520/
大前提として、私は ICS MEDIA の記事を愛読していますし、池田さんをはじめとして ICS で働くエンジニアの方々とはリアルで親交もあり、尊敬しています。
上述した「@scope入門」という記事に関しても @scope の基礎的な使い方が纏まっており、黎明期ゆえに文献の少ない @scope にフィーチャーした参考記事としては質の高い記事であることは間違いありません。
| fit-text { | |
| display: block flow; | |
| &::part(svg) { | |
| display: block flow; | |
| inline-size: 100%; | |
| block-size: auto; | |
| } | |
| &::part(text) { |
| /** | |
| * 要素の位置情報を監視してCSS変数として:rootに設定するWeb Component | |
| * AnchorPositioningのような位置指定に使用可能 | |
| * | |
| * @example | |
| * ```html | |
| * <rect-observer var-prefix="global-header"> | |
| * <header>...</header> | |
| * </rect-observer> | |
| * ``` |
| export type ObserverOptions = { | |
| root?: HTMLElement | null; | |
| rootMargin?: string; | |
| threshold?: number | number[]; | |
| }; | |
| const defaultOptions: ObserverOptions = { | |
| root: null, | |
| rootMargin: "0px", | |
| threshold: 0 |