Skip to main content
Known Participant
May 13, 2024
Answered

Failed to parse the stylesheet

  • May 13, 2024
  • 6 replies
  • 760 views

Dear Adobe Community, 

 

I really need your help right now.

 

I am currently working on a project on Robohelp that went fine until "Error: failed to parse the stylesheet" appears at the bottom-right corner. The versio I use is : Robohelp (Version 2022.4.179). 

 

Any ideas ? 

 

Thank you all, 

 

Malaurie36822156k70y.

    This topic has been closed for replies.
    Correct answer WoutJacobs

    Problem seems to be straightforward when looking at the images.

     

    area {
    target="_blank";
    }

     

    This is not valid CSS. You cannot use the equal sign like that.

    Easy to test, just remove that piece of CSS and check again.

    6 replies

    WoutJacobsCorrect answer
    Inspiring
    May 14, 2024

    Problem seems to be straightforward when looking at the images.

     

    area {
    target="_blank";
    }

     

    This is not valid CSS. You cannot use the equal sign like that.

    Easy to test, just remove that piece of CSS and check again.

    Known Participant
    May 15, 2024

    Oh gosh, it works !

     

    I just changed the equal sign by ":" and now, it works perfectly ! (It did that before not working at all haha but still). 

     

    Thank you so much !

    Peter Grainge
    Community Expert
    Community Expert
    May 14, 2024

    Can you recall what you were doing when it started to go wrong?

     

    The new UI versions of RoboHelp apply CSS3 and HTML5 rules strictly. I have seen some issues anywhere CDATA appears. Beyond that I don't know what to suggest. 

    ________________________________________________________

    My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

     

    Use menu (bottom right) to mark as Best Answer or to Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Known Participant
    May 14, 2024

    I was adding my script and a specific css in my topic, to give my page a better animation.

     

    Everything worked. But the day after I reopened my Robohelp project, and my css showed the error message "failed to parse the stylesheet".

     

    I guess I need to remove my entire script to make it work again.

    Peter Grainge
    Community Expert
    Community Expert
    May 14, 2024

    If you open the CSS in RoboHelp, it should show the code it doesn't like. Are you not seeing anything?

     

    When it was working, was that in 2022.4 or an earlier version?

     

    If you temporarily remove that script, does it still show the error?

    ________________________________________________________

    My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

     

    Use menu (bottom right) to mark as Best Answer or to Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Known Participant
    May 14, 2024

    I am not seeing anything unfortunately.

     

    When it was working, it was an earlier version, like the one just before the 2022.4 but it started to not work before I do the update (I was checking for help and I saw that that kind of glitches could be solved by having the latest version. 

     

    I removed the script from the topic, it still show the error, but if I removed the little part of my css linked with the javascript, I can have the author view of the css (which is a good beginning!). Therefore I guess there is an error in my css, but I don't understand why because I didn't touched it and it used to work like that.

     

    Maybe a problem with the script part ? Does it have to be somewhere specifically ? 

    Peter Grainge
    Community Expert
    Community Expert
    May 13, 2024

    @MalaurieSandD 

     

    If you want to change your forum name to something without the string of numbers, in RoboHelp go to Help > Manage My Account. There you will see Edit Profile. Click that and scroll down to Screen Name and remove the numbers. What is left must be unique so you may need to add something.

    ________________________________________________________

    My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

     

    Use menu (bottom right) to mark as Best Answer or to Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Peter Grainge
    Community Expert
    Community Expert
    May 13, 2024

    @Jeff_Coatsworth It will not happen in the samples unless the user makes changes that trigger it.

     

    @MalaurieSandD Jeff has asked the right question. I'm guessing but you have made some change(s) to styles whilst working on a topic and RoboHelp is seeing the change(s) as invalid.

     

    Have you tried switching to Source View? I would expect the issue to be highlighted somehow. Try the same with your CSS file if not.

    ________________________________________________________

    My site www.grainge.org includes many free Authoring and RoboHelp resources that may be of help.

     

    Use menu (bottom right) to mark as Best Answer or to Highlight particularly useful replies. Found the answer elsewhere? Share it here.
    Known Participant
    May 14, 2024

    Hi again!

     

    • The message appeared when I clicked on my css file. 
    •  

     

    To make sure it was not an error of templates changes, I used a new one untouched and it still doesn't work. I'll give you an exemple : 

     

    My CSS and the results : 

     

    The author view in Robohelp : 

     

     The source view : 

     

     

    The css view and the script I put directly in my topic :

     

     

     

     

     

     

     

     

    And this is the output : 

     Before the failed message of the css, everything was working perfectly and the javascript was also working, it just happened like that, and I don't understand why. I also verified that I included my css in my topics and it's there.

     

     

    Thank you for your help !

    Jeff_Coatsworth
    Community Expert
    Community Expert
    May 14, 2024

    You've also got a typo in that first warning line - I think you want to say "first flight" not "first slight".

    Jeff_Coatsworth
    Community Expert
    Community Expert
    May 13, 2024

    What were you doing when the message appeared? Is it happening with the sample project at all?