Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

:has psudo-class syntax detected as error

Explorer ,
Mar 14, 2025 Mar 14, 2025

I have added the following rule in my CSS file:

.wpb-content-wrapper:has(.firmaPost) {
	width: 100%;
	max-width: 600px;
}

The first line gets highlighted in red and this error is detected by DW:

Exptected RPAREN at line...

However, according to W3 Schools, the syntax is correct.

Why is the error shown?

TOPICS
Code , Error
288
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Mar 17, 2025 Mar 17, 2025

It's a bug, and it has been ignored for years by Adobe.

In external stylesheets, all kinds of more advanced CSS methods are flagged by DW as errors, within a <style> tagset, inside an html page though, it's not. That's probably why Nancy wasn't able to reproduce it. It immediately shows as an error in a .css file for me and DW's perfectly content with it in an html page.

When in doubt, use the css validator here: https://jigsaw.w3.org/css-validator/ 

With DW being moved out of active development in

...
Translate
Community Expert ,
Mar 14, 2025 Mar 14, 2025

I can't reproduce it at my end.

Maybe your document contains other code errors.

CSS Validation Service https://jigsaw.w3.org/css-validator/

HTML Validation Service https://validator.w3.org/

 

Nancy O'Shea— Product User, Community Expert & Moderator
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 17, 2025 Mar 17, 2025

Hi, if I comment that rule out no other error is reported so I have no idea.

The code works so it is not a real issue but strange anyway.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 17, 2025 Mar 17, 2025

Maybe Dreamweaver is out of date.

 

I would ignore the error in Dreamweaver and while you are at it, start using VSCode.

 

 

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 17, 2025 Mar 17, 2025
LATEST

It's a bug, and it has been ignored for years by Adobe.

In external stylesheets, all kinds of more advanced CSS methods are flagged by DW as errors, within a <style> tagset, inside an html page though, it's not. That's probably why Nancy wasn't able to reproduce it. It immediately shows as an error in a .css file for me and DW's perfectly content with it in an html page.

When in doubt, use the css validator here: https://jigsaw.w3.org/css-validator/ 

With DW being moved out of active development in 2020-21, the liklihood they'll ever fix it is very low.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines