question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug in adding a new css rule with selectors

See original GitHub issue

In 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:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
fgiannarcommented, Oct 17, 2016

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'); with cssComposer.add(target.get('selectors').models, '', '480px'); fixed the issue.

Again thanks for your time.

0reactions
lock[bot]commented, Sep 18, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found