Re: [csswg-drafts] [selectors-4] Add pseudo-class to differentiate loading from dynamically added content (#8175)

I've always thought that we should have pseudos that correspond to the 2 major document events - DOMContentLoaded and load. I've even implemented it in some projects that used css-like languages and , as pointed out a lot of people just do it with script.    That and 'javascript seems to be executing' were really common classes that got added to the root, they seem like obviously useful things to me that would be nice to just add natively.

I would totally support it and I think it should just match on the root and not on every element really - that matches more or less what people have done by attaching a class.

-- 
GitHub Notification of comment by bkardell
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8175#issuecomment-1339974436 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 6 December 2022 20:34:53 UTC