E ~ F(間接弟セレクタ)が効かない。
クソ。
var innerDoc, iframe = document.createElement(‘iframe’);
document.body.appendChild(iframe); //DOMに突っ込む
innerDoc = iframe.contentDocument;
innerDoc.open();
innerDoc.write(‘/*書き込むHTML*/’);
innerDoc.close();
入れ物作ってどっかに置いてからopenしてwriteしてclose
dt, dd { display: inline; margin: 0; } dd:after { content: '\A'; white-space: pre; }
http://lea.verou.me/2012/02/flexible-multiline-definition-lists-with-2-lines-of-css/
—
via Kotaro Kokubo @google+
https://plus.google.com/u/1/113100517422007103669/posts/VZCyNeRc7Ck
文字列検索は、testのが早い。(多分)
[js_bench] test vs match - jsdo.it - share JavaScript, HTML5 and CSS
-webkit-animation-fill-mode : both;を指定するとアニメーション終了時も100%のスタイルを維持するのですが、Androidでは動作しません。
via. ro-R (http://blog.webcreativepark.net/2012/02/12-141313.html)
img {
height: 100px;
width: 100px;
object-fit: contain;
}
# value
contain
fit
cover
none
via. .netmagazine (http://www.netmagazine.com/tutorials/control-image-aspect-ratios-css3)
p#demo {
font-family: Gabriola, cursive;
font-size: 24pt;
-ms-font-feature-settings: “ss06” 1;
}
OpenTypeフォントのスタイルセットを使用するプロパティ
via. IEblog (http://blogs.msdn.com/b/ie_jp/archive/2012/02/02/10263114.aspx)