[core] sheet.addRule with media query after attachment
- Dominant language
- JavaScript
- Stars
- 7.1k
- Forks
- 386
- PR merge metrics
- No merged PRs in 30d
Description
__Expected behavior:__
I should be able to create a style sheet, attach it to the dom and add a rule to a media query rule.
__Describe the bug:__
Currently, the rule is added virtually but isn't rendered.
__Codesandbox link:__
https://codesandbox.io/s/w66v8p8m35
__Versions (please complete the following information):__
- jss: 9, 10
- Browser chrome
- OS macOS
Contributor guide
Research direction
Start with the linked CodeSandbox reproduction and trace the core sheet attachment and media-query rule path in the JSS source. Confirm that adding a rule after attachment updates the rendered stylesheet, then verify the behavior in Chrome and add or run the relevant regression coverage if the repository identifies it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100