The Wayback Machine - https://web.archive.org/web/20221014193244/https://github.com/sveltejs/svelte/pull/7489
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] |important modifier for style directive #7489

Merged
merged 5 commits into from Oct 13, 2022

Conversation

gtm-nayan
Copy link
Contributor

@gtm-nayan gtm-nayan commented Apr 27, 2022

Alt syntax for #7470 as per #7365 (comment)

Before submitting the PR, please make sure you do the following

  • It's really useful if your PR references an issue where it is discussed ahead of time. In many cases, features are absent for a reason. For large changes, please create an RFC: https://github.com/sveltejs/rfcs
  • Prefix your PR title with [feat], [fix], [chore], or [docs].
  • This message body should clearly illustrate what problems it solves.
  • Ideally, include a test that fails without this PR but passes with it.

Tests

  • Run the tests with npm test and lint the project with npm run lint

TODO:

  • Non-puppeteer test has weird behavior for the precedence of !important
  • Intellisense gives an 'style:background-color|important' is not a valid attribute name error, compiler problem or just language tools using the released version of svelte for diagnosis?
  • implement diagnostics for invalid modifiers and tests for it

@gtm-nayan
Copy link
Contributor Author

gtm-nayan commented Apr 27, 2022

Welp, at least all of that is passing

@tanhauhau The other PR was marked as draft, was that because of the runtime test being weird or some other reason?

@gtm-nayan gtm-nayan force-pushed the gh-7365 branch 2 times, most recently from 9ee8604 to ca158da Compare Apr 28, 2022
@gtm-nayan gtm-nayan marked this pull request as ready for review May 1, 2022
@tanhauhau tanhauhau requested a review from baseballyama Jun 28, 2022
tanhauhau and others added 5 commits Oct 13, 2022
third param for set_style is optional
Runtime test doesn't work because of weird behaviour of computed style
the puppeteer test should cover it
@tanhauhau tanhauhau merged commit bee1851 into sveltejs:master Oct 13, 2022
18 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants