feat: release design system engine, studio and component contracts
This commit is contained in:
1 parent
ff1065fb27
commit
3943b946d6
693 files changed
+175546
-3894
No files matched your search
@@ -11,10 +11,14 @@ test("production CSS inlining uses a configurable UTF-8 byte budget", () => {
|
||||
});
|
||||
|
||||
test("relative asset URLs stay external so their base does not change", () => {
|
||||
for (const url of ['./font.woff2', '../font.woff2', 'font.woff2', '#mask']) {
|
||||
for (const url of ["./font.woff2", "../font.woff2", "font.woff2", "#mask"]) {
|
||||
expect(shouldInlineCss(`a{background:url("${url}")}`, undefined)).toBe(false);
|
||||
}
|
||||
for (const url of ['/font.woff2', 'https://cdn.example/font.woff2', 'data:image/svg+xml;base64,AAAA']) {
|
||||
for (const url of [
|
||||
"/font.woff2",
|
||||
"https://cdn.example/font.woff2",
|
||||
"data:image/svg+xml;base64,AAAA",
|
||||
]) {
|
||||
expect(shouldInlineCss(`a{background:url('${url}')}`, undefined)).toBe(true);
|
||||
}
|
||||
});
|
||||
Reference in new issue
Block a user