Forums

@-moz-document url-prefix() { not recognized

I'm trying to include some Firefox-specific CSS into my CSS file, and writing @-moz-document url-prefix() { my_styles } worked fine on my local server. However, when I updated my CSS file on PythonAnywhere, a red X button appeared on the left of the @-moz-document url-prefix() { and the message "Unknown @ rule: @-moz-document." appears when hovering over it. When I examined my website's source files, it looked like the changes were not there at all, as if I have not updated my CSS file. What can I do about this? Thanks.

The red cross is simply a warning that the syntax checker doesn't recognise the rule, but it will still be saved to the file. How did you examine your websites source files? If you open the file in the editor and it loads with the rule, then the rule is in the file.

Thanks! Sorry - I meant to put up the update but forgot - it actually did work after I tried again in a few hours. Not sure why it didn't work initially. Thank you for your response though!