全ブラウザ対応になったCSSのコンテナクエリについて、基礎から一歩踏み込んだ内容までを解説します。 デモ① SNSリアクションバー(container-type, @container) https://codepen.io/tonkotsuboy/pen/PoBMMZw デモ② 古都…
CSS Basic User Interface Module Level 3 (CSS3 UI)(Working Draft 2015-02-24)で、「ime-mode」プロパティが廃止となった(「水底の血」ブログ、参考訳)。 ime-modeは、HTMLのinput要素でIMEの状態を設定するCSSプロパティ。IMEを使った日本語入力を禁止したり、入力時の初期状態を制御するといった用途を想定しているようだ。Internet Explorer 5.0の独自仕様として登場し、他のWebブラウザでも一部実装された。たとえばFirefoxでは多くの議論の結果、ベンダプレフィックスなし、デフォルトで有効として実装され、その上でWebデザイナに対しては一般のサイトで使用しないようにアナウンスし、IMEの状態を制御されたくないユーザーに対してはユーザスタイルシートによる上書きを案内した(Mozil
こんにちは、@armorik83です。こういう煽ったタイトルを書きたいってずっと思っていたので今回やってみます。 z-indexの値付けどうしてる? z-indexの説明は省略しますが、この値は取りうる範囲が膨大1でそれに対する指標が無いことから、複数のWeb設計者が入り混じる場合にバッティングする恐れがあります。 1から10までの範囲で収めていた設計者のサイトに100刻みの値付けをするプラグインが導入されると、一気に関係が崩れてしまうことが想像できます。 W3Cではこの値についての明確な指標を載せていないようにみえます。(調査不足だったらすいません) 広告業界では Web広告業界の展開は日本国内外問わず盛んで、さまざまな手法でうっとうしい広告を載せてきます。この時、元のコンテンツにオーバーレイする形で表示される広告や、マウスオーバーで拡大する広告などが普及してきたことで、2012年にこの
Implement 'grid-template' parsing This change makes us recognize grid-template, parse it, store it and return properly to JavaScript. The specification mandates to validate to check that the areas defined by 'grid-template' are rectangular which involves a lot of the CSSParser code. Because validating involves building the grid areas, a new CSSValue was introduced to hold the computed value. Note
次のdiv要素のうち、:empty擬似クラスが適用されるのはどれでしょう。 1. テキストあり <div>(Text)</div> 2. 空 <div></div> 3. 半角スペース1つ <div> </div> 4. 半角スペース2つ <div> </div> 5. 改行 <div> </div> 6. コメント <div><!-- comment --></div> 7. テキストなしで空の子要素を持つ <div><span></span></div>正解は2と6です。 実際の動作はサンプルをどうぞ。 :empty? :empty擬似クラスは「Selectors Level 3」を見ると、次のように書かれています。 The:emptypseudo-class represents an element that has no children at all. In terms of
Webにおける体裁を制御するCSSに関するメーリングリストなどで、最近日本語の縦組におけるイタリック体又は斜体のことが議論になっている。公開されている議論のアーカイブを見ると、Synthesizing oblique, to which direction in RTL and vertical flow?という表題の2013年2月4日付の、Koji Ishii氏によるメッセージが、議論の始まりらしい。そこから議論が広がっているが、ここでは議論の詳細には立ち入らず、基本的なポイントだけについて私見を述べたい。基本的な原則を明らかにすれば、詳細に関する事柄も容易に導けると考えるからである。 何が課題になっているのか 上のURLにあるメッセージが提起している課題は以下のように要約できる。 CSS Fonts Module Level 3は、font-style属性にnormalとitalicと
Styling form elements is a pain point when developing web applications. Historically, web developers have had to accept the form controls the browser provided with little hope of customization. However, web rendering engines are increasingly adding hooks through pseudo-elements to give authors some control over the display. While all of these pseudo-elements are rendering engine specific (and ther
Andreas Kling akling at apple.com Sun Apr 7 09:36:19 PDT 2013 Previous message: [webkit-dev] Cleaning House Next message: [webkit-dev] Feature removal: CSS variables Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] Hi WebKittens! I'd like to remove the CSS variable feature from the tree now that Chromium has left, as they were the only ones shipping it AFAIK. The feature is awkwardly
From: fantasai <fantasai.lists@inkedblade.net> Date: Thu, 28 Mar 2013 17:42:43 -0700 To: "www-style@w3.org" <www-style@w3.org>, "public-css-testsuite@w3.org" <public-css-testsuite@w3.org> Message-ID: <5154E383.4030903@inkedblade.net> Tab and I just checked in the Great Short(Re)Naming on dev.w3.org. This means all editor's drafts have moved. We set up redirects. Please let us know if anything is b
↑の画像のみたいなGrowlぽい通知UIを作るときに、一筋縄ではいかなそうなところと言えば右上から下へ順に流れていってウィンドウに収まりきらなくなったら、列が変わって左へ流れていくようなレイアウトを作るところでしょうか。言葉が下手すぎたので図を見てください・・・ こういうやつ。 CSS力がめっきり減ってきてるので、確かこういうやつCSSで出来たと思うんやけどなーぐらいの感じだったんですけど、これこそFlexible Boxですね。 Flexibile Boxの詳細はわざわざ説明するのもアレなので以下の仕様書とかサイトを見て把握すればいいと思います。 CSS Flexible Box Layout Module CSS Flexbox Please! Using CSS flexible boxes HTML <div class="mod-notifications"> <div clas
background: linear-gradient(white 30%, hsla(0,0%,100%,0)), linear-gradient(hsla(0,0%,100%,0), white 70%) bottom, radial-gradient(at top, rgba(0,0,0,.2), transparent 70%), radial-gradient(at bottom, rgba(0,0,0,.2), transparent 70%) bottom; background-repeat: no-repeat; background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px; background-attachment: local, local, scroll, scroll; background-attach
PC 版の Google Chrome や Safari で見たときにユーザビリティーが落ちるから。 以上。 で終わってしまうと記事にならないので、ちゃんと説明しておく。 そもそも -webkit-text-size-adjust とは何か iPhone や Android のブラウザーは、縦向き (Portrate mode) と横向き (Landscape mode) の文字サイズを自動調整する機能がある。 これを制御するのが CSS の -webkit-text-size-adjust である。 文字サイズ自動調整の具体例 次のような HTML をスマートフォンで表示してみる。 <!DOCTYPE html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-
画像の幅をコンテンツに合わせてフレキシブルにしたい場合、親要素の幅を超えないようにするには CSS の max-width プロパティに 100% を指定する。 img { max-width: 100%; border: 1px solid silver; padding: 0.25em; } ただ、画像にパディングやボーダーを持たせた場合、その分が親要素の幅より大きくなってしまうことがある (Fig 1)。 Fig 1: パディングとボーダーを持つ画像に `max-width: 100%;` を指定すると、親要素の幅を越えてしまうことがある これをつねに親要素に収めるようにするには、box-sizing プロパティを利用して画像の幅がパディングとボーダー込みで算出されるようにする、という手がある。 img { max-width: 100%; border: 1px solid sil
Show lines around each change Show the changes in full context Timestamp: Jan 20, 2013, 11:05:16 PM (12 years ago) Author: mikelawther@chromium.org Message: CSS3 calc: unprefix implementation https://bugs.webkit.org/show_bug.cgi?id=91951 Reviewed by Ojan Vafai. Source/WebCore: Add support for the unprefixed 'calc()' function, while retaining support for the prefixed version. Test: css3/calc/simpl
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く