-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clear todos and remove css kebab handling (#8019)
- Loading branch information
Showing
9 changed files
with
45 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
'astro': major | ||
--- | ||
|
||
Remove backwards-compatible kebab-case transform for camelCase CSS variable names passed to the `style` attribute. If you were relying on the kebab-case transform in your styles, make sure to use the camelCase version to prevent missing styles. For example: | ||
|
||
```astro | ||
--- | ||
const myValue = "red" | ||
--- | ||
<!-- input --> | ||
<div style={{ "--myValue": myValue }}></div> | ||
<!-- output (before) --> | ||
<div style="--my-value:var(--myValue);--myValue:red"></div> | ||
<!-- output (after) --> | ||
<div style="--myValue:red"></div> | ||
``` | ||
|
||
```diff | ||
<style> | ||
div { | ||
- color: var(--my-value); | ||
+ color: var(--myValue); | ||
} | ||
</style> | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,18 @@ | ||
/** | ||
* UNCOMMENT: add support for smarter "external" scripts in Rollup | ||
import { expect } from 'chai'; | ||
import { loadFixture } from './test-utils.js'; | ||
|
||
let fixture; | ||
describe('External file references', () => { | ||
let fixture; | ||
|
||
before(async () => { | ||
fixture = await loadFixture({ root: './fixtures/astro-external-files/' }); | ||
await fixture.build(); | ||
}); | ||
before(async () => { | ||
fixture = await loadFixture({ root: './fixtures/astro-external-files/' }); | ||
await fixture.build(); | ||
}); | ||
|
||
// TODO: Vite error: fix external files | ||
describe('Externeal file references', () => { | ||
it('Build with externeal reference', async () => { | ||
let rss = await fixture.readFile('/index.html'); | ||
expect(rss).to.be(''); // TODO: inline snapshot | ||
}); | ||
it('Build with externeal reference', async () => { | ||
const html = await fixture.readFile('/index.html'); | ||
expect(html).to.include('<script src="/external-file.js"'); | ||
}); | ||
}); | ||
*/ | ||
|
||
it.skip('is skipped', () => {}); |