NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Bug in parsing CSS3 selector expression containing :has


Joined: 27 Mar 2023
Posts: 48
Reply with quote
Just to report a bug in parsing a CSS3 :has selector:

Code:
.btnspacer:nth-child(2n+1):has(+ .prevnextrec)


Gives an error on the + sign, but the selector is perfectly fine and works properly.
View user's profileFind all posts by ShoresOfNowhereSend private message


Joined: 27 Mar 2023
Posts: 48
Reply with quote
Also, another bug with the :has selector:

Code:
select:has(option[value="_"])


gives a non existent error on [ square bracket.
View user's profileFind all posts by ShoresOfNowhereSend private message


Joined: 27 Mar 2023
Posts: 48
Reply with quote
Another one:

Code:
.list td:has(.colortag)


On the dot . .
View user's profileFind all posts by ShoresOfNowhereSend private message


Joined: 27 Mar 2023
Posts: 48
Reply with quote
Another one like the second, on the plus sign:

Code:
.testaco_tog:has(+ .testaco.on)::before
View user's profileFind all posts by ShoresOfNowhereSend private message
Re: Bug in parsing CSS3 selector expression containing :has


Joined: 27 Mar 2023
Posts: 48
Reply with quote
[quote="ShoresOfNowhere"]Just to report a bug in parsing a CSS3 :has selector:

Code:
.btnspacer:nth-child(2n+1):has(+ .prevnextrec)


Gives an error on the + sign, but the selector is perfectly fine and works properly.[/quote]

Version 21 build 21024 now gives the error on the . of .prevnextrec
View user's profileFind all posts by ShoresOfNowhereSend private message


Joined: 27 Mar 2023
Posts: 48
Reply with quote
[quote="ShoresOfNowhere"]Also, another bug with the :has selector:

Code:
select:has(option[value="_"])


gives a non existent error on [ square bracket.[/quote]

Bug still present in v21 build 21024
View user's profileFind all posts by ShoresOfNowhereSend private message


Joined: 27 Mar 2023
Posts: 48
Reply with quote
[quote="ShoresOfNowhere"]Another one:

Code:
.list td:has(.colortag)


On the dot . .[/quote]
Still present on v21 build 21024
View user's profileFind all posts by ShoresOfNowhereSend private message


Joined: 27 Mar 2023
Posts: 48
Reply with quote
[quote="ShoresOfNowhere"]Another one like the second, on the plus sign:

Code:
.testaco_tog:has(+ .testaco.on)::before
[/quote]

On v21 build 21024 the error has moved on the . of .testaco, but still it's not correct.
View user's profileFind all posts by ShoresOfNowhereSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Thank you for the reports! First, let me clarify—this isn’t exactly “CSS3.” There’s no CSS3 standard anymore. CSS is an evolving technology with no fixed releases or baselines, and variations appear constantly, making it nearly impossible to track everything. That said, if you’re a customer, it’s best to file bugs as official reports. The forum is mainly for discussions. While I can gather issues from posts like this, there’s a chance I might miss something. Bug reports, on the other hand, are converted into tickets, which makes them much easier to track and manage.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website
Bug in parsing CSS3 selector expression containing :has
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic