Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
57
Help us understand the problem. What are the problem?

More than 1 year has passed since last update.

@feo52

css hacks 2020 ( IE11 / Edge / Chrome / Safari / Firefox )

css hack

css hacks for IE11 の続きです。
ブラウザ全般のhackも検討しました。

Chromium版Edgeは、
Chromeの基部のBlinkと同等なので、
Chromeの判定にも反応してしまいます。

2017年07月30日時点のhackです。
2018年01月01日時点のhackです。
2019年06月01日時点のhackです。
2020年01月20日時点のhackです。
ご利用は自己責任の上でお願い致します。

/* IE11 */
_:-ms-lang(x)::-ms-backdrop, .selector {}

/* Edge(EdgeHTML) */
_:-ms-lang(x)::backdrop, .selector {}

/* Edge(Chromium) */
_:lang(x)::-ms-, .selector {}

/* Chrome */
_:lang(x)::-internal-media-controls-overlay-cast-button, .selector {}

/* Safari */
_:lang(x)+_:-webkit-full-screen-document, .selector {}

/* Firefox */
_:lang(x)::-moz-placeholder, .selector {}
/* Edge(EdgeHTML) & IE11 & IE10 */
_:-ms-lang(x), .selector {}

/* Edge(Chromium) & Chrome & Safari & Firefox */
_:lang(x)::-webkit-, .selector {}

demo
code

https://drafts.csswg.org/selectors/
https://drafts.csswg.org/selectors/#changes
https://drafts.csswg.org/css-scoping/
https://drafts.csswg.org/css-scoping/#changes
https://drafts.csswg.org/css-shadow-parts/
https://www.w3.org/TR/selectors/
https://www.w3.org/TR/css-scoping/
https://www.w3.org/TR/css-shadow-parts/
https://w3c.github.io/webvtt/

https://developer.mozilla.org/en-US/docs/Web/CSS/Microsoft_Extensions
https://developer.mozilla.org/en-US/docs/Web/CSS/WebKit_Extensions
https://developer.mozilla.org/en-US/docs/Web/CSS/Mozilla_Extensions

https://github.com/WebKit/webkit
https://github.com/chromium/chromium
https://github.com/mozilla/gecko-dev

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
57
Help us understand the problem. What are the problem?