Bug in adding a new css rule with selectors
See original GitHub issueIn css_composer/main.js line 173 (add):
rule.get('selectors').add(selectors);
returns selectors with empty ids…
instead
selectors.each(function(selector){ rule.get('selectors').add(selector); });
seems to work.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
669058 - CSS selectors Level 4: support :has() - Monorail
tests to check attribute selectors inside :has() for all relationships. To minimize the change, the CL just added new :has() argument selectors
Read more >CSS attribute selector + descendant gives a bug in Webkit?
Try adding [_] {} to your CSS (doesn't matter where). In reality, it can be any attribute selector rule, without a descendant clause,...
Read more >How to change CSS rule "Selectors should be known"
And wanted to change the CSS rule “Selectors should be known” with a few exceptions to the custom CSS. I saw the issue...
Read more >CSS selectors - Learn web development | MDN
If you have more than one thing which uses the same CSS then the individual selectors can be combined into a selector list...
Read more >CSS-Tricks - Tips, Tricks, and Techniques on using Cascading ...
Daily articles about CSS, HTML, JavaScript, and all things related to web design and development.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Just an update, in case anyone else faces the same issue: The mistake was passing the selectors collection instead of array of models, so replacing:
cssComposer.add(target.get('selectors'), '', '480px');
withcssComposer.add(target.get('selectors').models, '', '480px');
fixed the issue.Again thanks for your time.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.