https://calendar.perfplanet.com/2025/ を読みます
あとで
https://calendar.perfplanet.com/2025/ を読みます
あとで
書いてる人:myakura (Masataka Yakura)
Chrome Dev Summit 2020の前後でGoogleのひとが公開した記事を、やる気の続く限り読んで書いたメモ。
主にみているのは以下のサイト。
これまではインラインレベル要素とブロックレベル要素といった大まかな定義でしたが、細かくなりました。
HTML5の内容モデルは「なんとかcontent」ってついてます。
| // haven't tested yet | |
| const jsdom = require('jsdom') | |
| const url = process.argv[2] | |
| jsdom.env(url, (err, window) => { | |
| const images = Array.from(window.document.querySelectorAll('img[src]')) | |
| const result = [] | |
| for (let i of images) { | |
| result.push({ |
| タッチの検出:「どう」ではなく「なぜ」 | |
| <p>原文:<a href="https://hacks.mozilla.org/2013/04/detecting-touch-its-the-why-not-the-how/">Detecting touch: it’s the ‘why’, not the ‘how’</a> by Patrick H. Lauke and Robert Nyman [Editor] on April 9, 2013</p> | |
| <p>One common aspect of making a website or application “mobile friendly” is the inclusion of tweaks, additional functionality or interface elements that are particularly aimed at touchscreens. A very common question from developers is now “How can I detect a touch-capable device?”</p> | |
| <p>Web サイトや Web アプリケーションをモバイル対応するにあたり、共通して見られるaspectのひとつに、タッチスクリーンを対象にした機能追加や対処があります。こういったこともあり、開発者から「どうやってタッチ可能なデバイスを検出するの?」という質問がよく投げられます。</p> | |
| <h2>タッチ機能の検出 | |
| Feature detection for touch</h2> |
| @charset "UTF-8"; | |
| // Sass list extra functions v0.0.1 | masataka yakura | MIT License | |
| // determines whether an argument is a list type | |
| // @return {boolean} | |
| @function is-list($arg) { | |
| @return type-of($arg) == 'list' or type-of($arg) == 'arglist'; | |
| // ISSUE: "false negative" with a single value wrapped in parens | |
| // since "Sass doesn't use () as list delimiter characters." |
| @mixin lg-keyword($keyword, $colorstops...) { | |
| $prefixes: '-webkit-'; | |
| // 標準のキーワード | |
| $standard_keywords: | |
| to bottom, to left, to top, to right, | |
| to top left, to top right, to bottom right, to bottom left, | |
| to left top, to right top, to right bottom, to left bottom; | |
| // 接頭辞版のキーワード |