css3にテキスト選択時のハイライト表示色を変更する::selectionてのがありました。
確認用html / http://sakurachiro.com/_exercise/html_css/css3-selection/
試しに以下のcssをコピペして
Firefoxで確認してもらうとハイライト部分の色が変わるです。
[css]
::-moz-selection{
color:#fff;
background:#ff7200;
}
::selection {
color:#fff;
background:#ff7200;
}
[/css]
ありました、と書いたわけは
W3C Working Draft 10 March 2009でE::selectionを確認できなかったからです。
selectionで検索すると
http://www.w3.org/TR/css3-selectors/#UIfragments
7.3. Blank
This section intentionally left blank. (This section previously defined a ::selection pseudo-element.)
という部分がヒットしてそのname属性UIfragmentsとは何だろうと検索したら以下のページがヒットしたです。
http://www.tagindex.com/cgi-lib/q1bbs/patio.cgi?mode=view&no=4248
::selection は「何かメンドクセ」ということで、今年に入って CSS3 から削除されたよ。
http://www.w3.org/blog/CSS/2009/02/05/resolutions_51
Resolved: Drop ::selection from Selectors Level 3. Rationale: It’s vastly underspecified, and implementations are not interoperable. We can add it back in Level 4 once we have a good definition.
ちなみにE::selectionで検索するとデリヘルばっかりヒットするという不思議。
コメント