Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

Этот сайт имеет ограниченную функциональность, пока мы проводим техническое обслуживание для улучшения его работы. Если какая-либо статья не решила вашу проблему и вы хотите задать вопрос, наше сообщество поддержки ждёт вас: @FirefoxSupport в Твиттере и /r/firefox на Reddit.

Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Подробнее

-webkit- vendor prefix css class is rendered

  • 1 ответ
  • 1 имеет эту проблему
  • 4 просмотра
  • Последний ответ от cor-el

more options

I have a special rule in my css to target a webkit webview on ios which has a layout rendering problem. This is a known issue. The only fix for this is adding this rule:

-webkit-transform: translate3d(0, 0, 0);

This gives some side effects in my apllication because the z-indexation is messed up. This was an acceptable trade-off when only webkit browsers are concerned.

Suddenly I see the side-effect occur in Firefox Quantum. It seems the css vendor-prefixed rule is also executed. I don't understand that. Isn't the browser supposed to only run it's own vendor prefixed classes? in this case the -moz- prefixed classes?

See the screenshot

Although only the `-webkit-transform` is defined is also shows the non-prefixed rule `transform:`

I have a special rule in my css to target a webkit webview on ios which has a layout rendering problem. This is a known issue. The only fix for this is adding this rule: -webkit-transform: translate3d(0, 0, 0); This gives some side effects in my apllication because the z-indexation is messed up. This was an acceptable trade-off when only webkit browsers are concerned. Suddenly I see the side-effect occur in Firefox Quantum. It seems the css vendor-prefixed rule is also executed. I don't understand that. Isn't the browser supposed to only run it's own vendor prefixed classes? in this case the -moz- prefixed classes? See the screenshot Although only the `-webkit-transform` is defined is also shows the non-prefixed rule `transform:`

Выбранное решение

There is this pref to honor CSS rules with a -webkit prefix:

  • layout.css.prefixes.webkit

See also this old bug:

  • bug 725299 - Wrong z-ordering with css 3d transforms using opacity and transform-style

(please do not comment in bug reports
https://bugzilla.mozilla.org/page.cgi?id=etiquette.html
)

Прочитайте этот ответ в контексте 👍 0

Все ответы (1)

more options

Выбранное решение

There is this pref to honor CSS rules with a -webkit prefix:

  • layout.css.prefixes.webkit

See also this old bug:

  • bug 725299 - Wrong z-ordering with css 3d transforms using opacity and transform-style

(please do not comment in bug reports
https://bugzilla.mozilla.org/page.cgi?id=etiquette.html
)