Help us understand the problem. What is going on with this article?

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

feo52
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
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  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
ユーザーは見つかりませんでした