Skip to main content
Pedro __ 01
Participant
November 13, 2019
解決済み

Can't use the CSS fr Unit on Dreamweaver? (Unexpected token '1fr' at line 251, col8.)

  • November 13, 2019
  • 返信数 4.
  • 7487 ビュー

It's just annoying. 600+ lines of CSS and this is the only error I have. Other people have also been complaining about this issue for a long time now so it's probably Dreamweaver not recognising fr units for some reason.

このトピックへの返信は締め切られました。
解決に役立った回答 BenPleysier

You can turn off linting if you cannot stand to ignore the so-called error.

返信数 4

Participant
July 27, 2020

Same here, I have the same issue but does anyone know a substitute value or a way to replace 'fr' so DW can read it when we put grid-template: 'value'?

Participant
August 23, 2020

Dreamweaver "reads" fr just fine. That is, you can use fr and it works without any problem. The issue that it shows up as a error with a red line number. That's annoying but not a show-stopper. Don't change the proper code to try to get DW to not see it as an error. Just ignore all of DW's backtalk on the fr unit.

Jon Fritz
Community Expert
Community Expert
November 13, 2019

That's a known bug in DW that Adobe has been aware of for well over a year. The earliest "fr units cause problems" post I see in the official bug report forum is from January 2018.

It appears the bug doesn't show itself when written into <style> tags in the <head> of an html document, but still occurs within an external .css file in the latest DW CC 2020.

So close Adobe... so close.

Legend
November 13, 2019

A lot of editors are way behind in terms of forward thinking workflows/css. I'm surprised at DW though as it should be ontop of it given the companies resources, smaller companies or independent software developers can somewhat be forgiven.

 

For what its worth NO editor gets linting absolutely correct, some are better than other BUT NONE are perfect. I would either live with the non-errors (which agreed can be annoying) or turn linting off and maybe check with the W3c validator but I dont know if that is up to scratch these days given the numerous frameworks being used, which are likely to throw errors.

 

Good to see you are embracing grid though, its exactly the right way to go! Bought a smile to my face.

Pedro __ 01
Pedro __ 01作成者
Participant
November 13, 2019

Thank You! I'll just toggle linting for now 🙂

BenPleysier
Community Expert
BenPleysierCommunity Expert解決!
Community Expert
November 13, 2019

You can turn off linting if you cannot stand to ignore the so-called error.

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Pedro __ 01
Pedro __ 01作成者
Participant
November 13, 2019

Thanks, will do for now.