Rechercher dans l’assistance

Évitez les escroqueries à l’assistance. Nous ne vous demanderons jamais d’appeler ou d’envoyer un SMS à un numéro de téléphone ou de partager des informations personnelles. Veuillez signaler toute activité suspecte en utilisant l’option « Signaler un abus ».

En savoir plus

Purpose of the "@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */" css code?

  • 5 réponses
  • 1 a ce problème
  • 50 vues
  • Dernière réponse par Rick W

more options

Can anyone please explain the purpose of the

   @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */ 

css code, which is often recommended to head any userchrome.css text inside the chrome folder? What happens when you omit this @namespace url line?

Can anyone please explain the purpose of the @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */ css code, which is often recommended to head any userchrome.css text inside the chrome folder? What happens when you omit this @namespace url line?

Solution choisie

Hi, have a read of https://www.userchrome.org/adding-style-recipes-userchrome-css.html

If your question is resolved by this or another answer, please take a minute to let us know. Thank you!

Lire cette réponse dans son contexte 👍 1

Toutes les réponses (5)

more options

Is it simply an advertisement for Firefox XML User Interface Language?

more options

You use this line to set the namespace for the code on that page.

more options

Why does one need to set a namespace?? What happens if it is not done?

more options

Solution choisie

Hi, have a read of https://www.userchrome.org/adding-style-recipes-userchrome-css.html

If your question is resolved by this or another answer, please take a minute to let us know. Thank you!

more options

Thanks, Scribe, that is very useful:

Scribe said

Hi, have a read of https://www.userchrome.org/adding-style-recipes-userchrome-css.html

Good to know it is safe to leave that namespace line out of my userchrome.css code.