xbintsc 0.6.8 → 0.6.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/cli/help.d.ts +1 -1
- package/dist/src/cli/main.js +1 -0
- package/dist/src/cli/main.js.map +1 -1
- package/dist/src/driver/config.js +1 -0
- package/dist/src/driver/config.js.map +1 -1
- package/dist/src/driver/toolchain.d.ts +10 -0
- package/dist/src/driver/toolchain.js +69 -8
- package/dist/src/driver/toolchain.js.map +1 -1
- package/dist/src/driver/version.d.ts +1 -1
- package/dist/src/driver/version.js +1 -1
- package/dist/src/driver/version.js.map +1 -1
- package/dist/tests/driver/config.test.js +15 -2
- package/dist/tests/driver/config.test.js.map +1 -1
- package/dist/tests/driver/toolchain.test.js +23 -2
- package/dist/tests/driver/toolchain.test.js.map +1 -1
- package/dist/tests/e2e/gui-helpers.d.ts +2 -0
- package/dist/tests/e2e/gui-helpers.js +1 -0
- package/dist/tests/e2e/gui-helpers.js.map +1 -1
- package/dist/tests/e2e/gui-layout.test.js +47 -0
- package/dist/tests/e2e/gui-layout.test.js.map +1 -1
- package/dist/tests/e2e/gui-paint.test.js +108 -0
- package/dist/tests/e2e/gui-paint.test.js.map +1 -1
- package/dist/tests/e2e/gui-unsupported.test.d.ts +6 -0
- package/dist/tests/e2e/gui-unsupported.test.js +123 -0
- package/dist/tests/e2e/gui-unsupported.test.js.map +1 -0
- package/doc/ai/extensions.md +7 -4
- package/doc/ai/zh-CN/extensions.md +6 -3
- package/doc/gui/dom.md +69 -1
- package/doc/gui/known-issues.md +12 -5
- package/doc/gui/layout.md +19 -6
- package/doc/gui/rendering.md +16 -9
- package/doc/requirements.md +5 -3
- package/doc/zh-CN/gui/dom.md +61 -1
- package/doc/zh-CN/gui/known-issues.md +11 -4
- package/doc/zh-CN/gui/layout.md +14 -4
- package/doc/zh-CN/gui/rendering.md +13 -10
- package/doc/zh-CN/requirements.md +5 -2
- package/package.json +7 -7
- package/runtime/ext_gui/clip_values.cpp +11 -0
- package/runtime/ext_gui/css.cpp +27 -2
- package/runtime/ext_gui/css_selector.cpp +23 -0
- package/runtime/ext_gui/css_sheet.cpp +7 -0
- package/runtime/ext_gui/document.cpp +3 -0
- package/runtime/ext_gui/document_animation.cpp +4 -1
- package/runtime/ext_gui/dom_api.cpp +3 -0
- package/runtime/ext_gui/dom_parse.cpp +4 -0
- package/runtime/ext_gui/effect_values.cpp +28 -7
- package/runtime/ext_gui/gradient_values.cpp +25 -5
- package/runtime/ext_gui/inline_svg.cpp +3 -0
- package/runtime/ext_gui/layout_flow.cpp +12 -2
- package/runtime/ext_gui/layout_inline.cpp +80 -7
- package/runtime/ext_gui/media_query.cpp +7 -1
- package/runtime/ext_gui/paint.cpp +58 -23
- package/runtime/ext_gui/paint.h +7 -4
- package/runtime/ext_gui/paint_clip.cpp +74 -19
- package/runtime/ext_gui/paint_internal.h +7 -1
- package/runtime/ext_gui/renderer_clip.cpp +19 -17
- package/runtime/ext_gui/style.cpp +5 -1
- package/runtime/ext_gui/style.h +5 -0
- package/runtime/ext_gui/style_cascade.cpp +2 -0
- package/runtime/ext_gui/style_internal.h +7 -2
- package/runtime/ext_gui/style_print.cpp +3 -0
- package/runtime/ext_gui/style_text.cpp +11 -0
- package/runtime/ext_gui/style_values.cpp +89 -90
- package/runtime/ext_gui/transform.cpp +2 -0
- package/runtime/ext_gui/warnings.cpp +300 -0
- package/runtime/ext_gui/warnings.h +59 -0
- package/src/cli/main.ts +1 -0
- package/src/driver/config.ts +1 -0
- package/src/driver/toolchain.ts +79 -8
- package/src/driver/version.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gui-layout.test.js","sourceRoot":"","sources":["../../../tests/e2e/gui-layout.test.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AACnE,OAAO,EAA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;;OAgCC,CACF,CAAC;QAEF,yEAAyE;QACzE,qEAAqE;QACrE,sEAAsE;QACtE,4EAA4E;QAC5E,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACzC,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC1C,gEAAgE;QAChE,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACvC,oEAAoE;QACpE,gEAAgE;QAChE,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;QAC1C,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -267,5 +267,113 @@ describe.skipIf(!guiAvailable)("gui extension — paint", () => {
|
|
|
267
267
|
// validation does) contains the bare word without an engine warning.
|
|
268
268
|
expect(stderr).not.toContain("xt_gui: mix-blend-mode");
|
|
269
269
|
});
|
|
270
|
+
it("clips rounded overflow boxes and rounded replaced content", () => {
|
|
271
|
+
const src = harness.imageSrc(harness.logoPath);
|
|
272
|
+
const { value, stdout } = harness.compileAndRun("rounded-clip", `
|
|
273
|
+
import { createWindow, run } from "gui";
|
|
274
|
+
|
|
275
|
+
const HTML = \`
|
|
276
|
+
<html><head><style>
|
|
277
|
+
body { margin: 0; }
|
|
278
|
+
#outer, #middle, #art {
|
|
279
|
+
width: 62px; height: 62px; border-radius: 50%; overflow: hidden;
|
|
280
|
+
}
|
|
281
|
+
#art img { width: 60px; height: 60px; }
|
|
282
|
+
#own { display: block; width: 40px; height: 40px; border-radius: 50%; }
|
|
283
|
+
</style></head><body>
|
|
284
|
+
<div id="outer"><div id="middle"><div id="art"><img id="pic" src="${src}"></div></div></div>
|
|
285
|
+
<img id="own" src="${src}">
|
|
286
|
+
</body></html>
|
|
287
|
+
\`;
|
|
288
|
+
|
|
289
|
+
const win = createWindow({ title: "rounded-clip", width: 400, height: 300 });
|
|
290
|
+
win.on("ready", () => {
|
|
291
|
+
const rect = (selector) => {
|
|
292
|
+
const r = win.getBoundingClientRect(selector);
|
|
293
|
+
return r.x + "," + r.y + "," + r.width + "," + r.height;
|
|
294
|
+
};
|
|
295
|
+
console.log("pic=" + rect("#pic"));
|
|
296
|
+
console.log("own=" + rect("#own"));
|
|
297
|
+
console.log("radius=" + win.computedStyle("#art", "border-radius"));
|
|
298
|
+
console.log("list-start");
|
|
299
|
+
console.log(win.paintList());
|
|
300
|
+
console.log("list-end");
|
|
301
|
+
win.close();
|
|
302
|
+
});
|
|
303
|
+
win.loadHTML(HTML);
|
|
304
|
+
run();
|
|
305
|
+
`);
|
|
306
|
+
const list = stdout.slice(stdout.indexOf("list-start"), stdout.indexOf("list-end"));
|
|
307
|
+
const lines = list.split("\n");
|
|
308
|
+
const picLine = lines.find((line) => line.includes("w=60.0 h=60.0"));
|
|
309
|
+
const ownLine = lines.find((line) => line.includes("w=40.0 h=40.0"));
|
|
310
|
+
expect(picLine).toBeDefined();
|
|
311
|
+
expect(ownLine).toBeDefined();
|
|
312
|
+
// The child image is inside three rounded `overflow: hidden` ancestors, so
|
|
313
|
+
// its op carries three triangulated clip polygons. Before the rounded clip
|
|
314
|
+
// existed the rectangle scissor let the square artwork fill the corners of
|
|
315
|
+
// the circle.
|
|
316
|
+
expect(picLine).toMatch(/clip-path=\d+,\d+,\d+ /);
|
|
317
|
+
// A `border-radius` on a replaced element clips its own pixels too, with
|
|
318
|
+
// no `overflow` needed.
|
|
319
|
+
expect(ownLine).toMatch(/clip-path=\d+ /);
|
|
320
|
+
// The scissor rectangle is still the (intersected) padding box.
|
|
321
|
+
expect(picLine).toContain("clip=0.0,0.0,62.0,62.0");
|
|
322
|
+
expect(value("pic")).toBe("0,0,60,60");
|
|
323
|
+
expect(value("own")).toBe("0,62,40,40");
|
|
324
|
+
expect(value("radius")).toBe("50%");
|
|
325
|
+
});
|
|
326
|
+
it("truncates an overflowing nowrap line with `text-overflow: ellipsis`", () => {
|
|
327
|
+
const text = "W".repeat(40);
|
|
328
|
+
const { value, stdout } = harness.compileAndRun("text-overflow", `
|
|
329
|
+
import { createWindow, run } from "gui";
|
|
330
|
+
|
|
331
|
+
const HTML = \`
|
|
332
|
+
<html><head><style>
|
|
333
|
+
body { margin: 0; }
|
|
334
|
+
#clip, #ellipsis, #fits {
|
|
335
|
+
width: 60px; overflow: hidden; white-space: nowrap;
|
|
336
|
+
font-size: 12px; color: #112233;
|
|
337
|
+
}
|
|
338
|
+
#ellipsis, #fits { text-overflow: ellipsis; }
|
|
339
|
+
</style></head><body>
|
|
340
|
+
<div id="clip">${text}</div>
|
|
341
|
+
<div id="ellipsis">${text}</div>
|
|
342
|
+
<div id="fits">OK</div>
|
|
343
|
+
</body></html>
|
|
344
|
+
\`;
|
|
345
|
+
|
|
346
|
+
const win = createWindow({ title: "text-overflow", width: 400, height: 200 });
|
|
347
|
+
win.on("ready", () => {
|
|
348
|
+
console.log("clip-height=" + win.getBoundingClientRect("#clip").height);
|
|
349
|
+
console.log("ellipsis-height=" + win.getBoundingClientRect("#ellipsis").height);
|
|
350
|
+
console.log("overflow=" + win.computedStyle("#ellipsis", "text-overflow"));
|
|
351
|
+
console.log("list-start");
|
|
352
|
+
console.log(win.paintList());
|
|
353
|
+
console.log("list-end");
|
|
354
|
+
win.close();
|
|
355
|
+
});
|
|
356
|
+
win.loadHTML(HTML);
|
|
357
|
+
run();
|
|
358
|
+
`);
|
|
359
|
+
const list = stdout.slice(stdout.indexOf("list-start"), stdout.indexOf("list-end"));
|
|
360
|
+
const runs = list.split("\n").filter((line) => line.includes("text x="));
|
|
361
|
+
// `nowrap` keeps both boxes one line tall; without it the 40 W's would wrap
|
|
362
|
+
// inside the 60px box and the height would be several lines.
|
|
363
|
+
const lineHeight = Number(value("clip-height"));
|
|
364
|
+
expect(lineHeight).toBeGreaterThan(0);
|
|
365
|
+
expect(Number(value("ellipsis-height"))).toBeCloseTo(lineHeight, 3);
|
|
366
|
+
expect(value("overflow")).toBe("ellipsis");
|
|
367
|
+
// The default (`clip`) still paints the complete string; the ellipsis box
|
|
368
|
+
// replaces the part that does not fit with one U+2026 and drops the rest.
|
|
369
|
+
expect(runs.some((line) => line.includes('"' + text + '"'))).toBe(true);
|
|
370
|
+
// A short line that fits is left alone: no ellipsis is appended.
|
|
371
|
+
expect(runs.some((line) => line.includes('"OK"'))).toBe(true);
|
|
372
|
+
const ellipsized = runs.find((line) => line.includes("\u2026"));
|
|
373
|
+
expect(ellipsized).toBeDefined();
|
|
374
|
+
expect(runs.filter((line) => line.includes("\u2026"))).toHaveLength(1);
|
|
375
|
+
expect(ellipsized).toMatch(/"W+\u2026"/);
|
|
376
|
+
expect(ellipsized).not.toContain(text);
|
|
377
|
+
});
|
|
270
378
|
});
|
|
271
379
|
//# sourceMappingURL=gui-paint.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gui-paint.test.js","sourceRoot":"","sources":["../../../tests/e2e/gui-paint.test.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAElE,MAAM,OAAO,GAAG,gBAAgB,EAAE,CAAC;AAEnC,QAAQ,CAAC,MAAM,CAAC,CAAC,YAAY,CAAC,CAAC,uBAAuB,EAAE,GAAG,EAAE;IAC3D,SAAS,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;IACjC,QAAQ,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC;IAElC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C,CAAC,CAAC;QACvE,MAAM,CAAC,UAAW,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;QAC1C,MAAM,CAAC,UAAW,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* End-to-end tests for the `gui` extension — the warnings that make an
|
|
3
|
+
* unsupported HTML element or CSS property visible instead of silently
|
|
4
|
+
* dropping it.
|
|
5
|
+
*/
|
|
6
|
+
import { afterAll, beforeAll, describe, expect, it } from "vitest";
|
|
7
|
+
import { createGuiHarness, guiAvailable } from "./gui-helpers.js";
|
|
8
|
+
const harness = createGuiHarness();
|
|
9
|
+
const PAGE = `
|
|
10
|
+
<html>
|
|
11
|
+
<head>
|
|
12
|
+
<style>
|
|
13
|
+
body { color: #111111; }
|
|
14
|
+
.one { unsupported-one: 1px; color: #222222; }
|
|
15
|
+
.two { unsupported-one: 2px; display: flex; }
|
|
16
|
+
@supports (display: grid) { .supports { color: red; } }
|
|
17
|
+
@layer base { .layer { color: blue; } }
|
|
18
|
+
@import url("https://example.com/x.css");
|
|
19
|
+
@font-face { font-family: "Unused"; font-display: swap; }
|
|
20
|
+
.has:has(.one) { color: green; }
|
|
21
|
+
.selection::selection { color: green; }
|
|
22
|
+
.bad[data-x="y" i] { color: red; }
|
|
23
|
+
@media (min-resolution: 2dppx) { .media { color: green; } }
|
|
24
|
+
.features {
|
|
25
|
+
color: hsl(0 100% 50%);
|
|
26
|
+
width: 10vmin;
|
|
27
|
+
transform: perspective(10px);
|
|
28
|
+
filter: url(#somefilter);
|
|
29
|
+
clip-path: path("M0 0 L10 10 Z");
|
|
30
|
+
background-image: conic-gradient(red, blue);
|
|
31
|
+
}
|
|
32
|
+
</style>
|
|
33
|
+
</head>
|
|
34
|
+
<body>
|
|
35
|
+
<table><tr><td>cell</td></tr></table>
|
|
36
|
+
<input value="x">
|
|
37
|
+
<iframe src="about:blank"></iframe>
|
|
38
|
+
<svg width="20" height="20"><text x="0" y="10">x</text></svg>
|
|
39
|
+
<div class="one">one</div>
|
|
40
|
+
<div class="two">two</div>
|
|
41
|
+
<div class="features has">features</div>
|
|
42
|
+
<div class="layer">layer</div>
|
|
43
|
+
<div class="media">media</div>
|
|
44
|
+
<a href="#top">top</a>
|
|
45
|
+
<div srcset="a.png 1x" sizes="100px" controls contenteditable="true" hidden tabindex="0">attrs</div>
|
|
46
|
+
</body>
|
|
47
|
+
</html>
|
|
48
|
+
`;
|
|
49
|
+
const PROGRAM = `
|
|
50
|
+
import { createWindow, run } from "gui";
|
|
51
|
+
|
|
52
|
+
const HTML = ${JSON.stringify(PAGE)};
|
|
53
|
+
|
|
54
|
+
const win = createWindow({ title: "unsupported", width: 320, height: 240 });
|
|
55
|
+
win.on("ready", () => {
|
|
56
|
+
/* A run-time created element is reported too, not just markup from the page. */
|
|
57
|
+
win.document.createElement("select");
|
|
58
|
+
win.document.querySelector(".one").style.setProperty("unsupported-two", "3px");
|
|
59
|
+
win.computedStyle(".one", "color");
|
|
60
|
+
console.log("done=1");
|
|
61
|
+
});
|
|
62
|
+
win.loadHTML(HTML);
|
|
63
|
+
run();
|
|
64
|
+
`;
|
|
65
|
+
function occurrences(text, needle) {
|
|
66
|
+
return text.split(needle).length - 1;
|
|
67
|
+
}
|
|
68
|
+
describe.skipIf(!guiAvailable)("gui extension — unsupported features", () => {
|
|
69
|
+
beforeAll(() => harness.setup());
|
|
70
|
+
afterAll(() => harness.cleanup());
|
|
71
|
+
it("reports each unsupported element and CSS property once", () => {
|
|
72
|
+
const { value, stderr } = harness.compileAndRun("unsupported", PROGRAM, {
|
|
73
|
+
console: true,
|
|
74
|
+
});
|
|
75
|
+
expect(value("done")).toBe("1");
|
|
76
|
+
expect(stderr).toContain("unsupported element <table>");
|
|
77
|
+
expect(stderr).toContain("unsupported element <input>");
|
|
78
|
+
expect(stderr).toContain("unsupported element <iframe>");
|
|
79
|
+
/* Created through `document.createElement`, after the page was parsed. */
|
|
80
|
+
expect(stderr).toContain("unsupported element <select>");
|
|
81
|
+
/* Declared by two rules, but reported as one property name. */
|
|
82
|
+
expect(stderr).toContain("unsupported CSS property 'unsupported-one'");
|
|
83
|
+
/* Set through the CSSOM after the page was parsed. */
|
|
84
|
+
expect(stderr).toContain("unsupported CSS property 'unsupported-two'");
|
|
85
|
+
/* At-rules, selectors, media queries and value functions. */
|
|
86
|
+
expect(stderr).toContain("unsupported at-rule '@supports'");
|
|
87
|
+
expect(stderr).toContain("unsupported at-rule '@layer'");
|
|
88
|
+
expect(stderr).toContain("unsupported at-rule '@import'");
|
|
89
|
+
expect(stderr).toContain("unsupported @font-face descriptor 'font-display'");
|
|
90
|
+
expect(stderr).toContain("unsupported pseudo-class ':has'");
|
|
91
|
+
expect(stderr).toContain("unsupported pseudo-element '::selection'");
|
|
92
|
+
expect(stderr).toContain(`unsupported selector '.bad[data-x="y" i]'`);
|
|
93
|
+
expect(stderr).toContain("unsupported media feature 'min-resolution'");
|
|
94
|
+
expect(stderr).toContain("unsupported function 'hsl()' in 'color'");
|
|
95
|
+
expect(stderr).toContain("unsupported CSS unit 'vmin'");
|
|
96
|
+
expect(stderr).toContain("unsupported function 'perspective()' in 'transform'");
|
|
97
|
+
expect(stderr).toContain("unsupported function 'url()' in 'filter'");
|
|
98
|
+
expect(stderr).toContain("unsupported function 'path()' in 'clip-path'");
|
|
99
|
+
expect(stderr).toContain("unsupported function 'conic-gradient()' in 'background-image'");
|
|
100
|
+
/* SVG children and HTML attributes the engine has no behaviour for. */
|
|
101
|
+
expect(stderr).toContain("unsupported SVG element <text>");
|
|
102
|
+
expect(stderr).toContain("unsupported attribute 'srcset' on <div>");
|
|
103
|
+
expect(stderr).toContain("unsupported attribute 'controls' on <div>");
|
|
104
|
+
expect(stderr).toContain("unsupported attribute 'href' on <a>");
|
|
105
|
+
expect(occurrences(stderr, "unsupported CSS property 'unsupported-one'")).toBe(1);
|
|
106
|
+
expect(occurrences(stderr, "unsupported element <table>")).toBe(1);
|
|
107
|
+
expect(occurrences(stderr, "unsupported element <td>")).toBe(1);
|
|
108
|
+
expect(occurrences(stderr, "unsupported attribute 'srcset' on <div>")).toBe(1);
|
|
109
|
+
/* A property the engine implements is never reported. */
|
|
110
|
+
expect(stderr).not.toContain("unsupported CSS property 'color'");
|
|
111
|
+
expect(stderr).not.toContain("unsupported CSS property 'display'");
|
|
112
|
+
});
|
|
113
|
+
it("can silence the reports with XT_GUI_NO_WARNINGS", () => {
|
|
114
|
+
const { value, stderr } = harness.compileAndRun("unsupported-quiet", PROGRAM, {
|
|
115
|
+
console: true,
|
|
116
|
+
env: { XT_GUI_NO_WARNINGS: "1" },
|
|
117
|
+
});
|
|
118
|
+
expect(value("done")).toBe("1");
|
|
119
|
+
expect(stderr).not.toContain("unsupported element");
|
|
120
|
+
expect(stderr).not.toContain("unsupported CSS property");
|
|
121
|
+
});
|
|
122
|
+
});
|
|
123
|
+
//# sourceMappingURL=gui-unsupported.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gui-unsupported.test.js","sourceRoot":"","sources":["../../../tests/e2e/gui-unsupported.test.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAElE,MAAM,OAAO,GAAG,gBAAgB,EAAE,CAAC;AAEnC,MAAM,IAAI,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCZ,CAAC;AAEF,MAAM,OAAO,GAAG;;;eAGD,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;;;;;;;;;;;;CAYlC,CAAC;AAEF,SAAS,WAAW,CAAC,IAAY,EAAE,MAAc;I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CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACnE,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAChE,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,yCAAyC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAE/E,yDAAyD;QACzD,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,kCAAkC,CAAC,CAAC;QACjE,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,oCAAoC,CAAC,CAAC;IACrE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,iDAAiD,EAAE,GAAG,EAAE;QACzD,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,aAAa,CAAC,mBAAmB,EAAE,OAAO,EAAE;YAC5E,OAAO,EAAE,IAAI;YACb,GAAG,EAAE,EAAE,kBAAkB,EAAE,GAAG,EAAE;SACjC,CAAC,CAAC;QACH,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAChC,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,qBAAqB,CAAC,CAAC;QACpD,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,0BAA0B,CAAC,CAAC;IAC3D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/doc/ai/extensions.md
CHANGED
|
@@ -89,10 +89,13 @@ reflowing anything — animate it per frame from `requestAnimationFrame` or with
|
|
|
89
89
|
`transition: transform` (see `examples/gui/pelican-svg`). The CSS subset also
|
|
90
90
|
covers `@media`, `::before`/`::after` generated content, multi-layer linear/radial
|
|
91
91
|
backgrounds, `calc()`, `text-shadow`/`box-shadow` with a true Gaussian blur,
|
|
92
|
-
`clip-path`, `
|
|
93
|
-
|
|
94
|
-
`
|
|
95
|
-
|
|
92
|
+
`clip-path`, rounded `border-radius` clipping (including `overflow: hidden`
|
|
93
|
+
frames and replaced content), `filter` colour effects, `backdrop-filter`
|
|
94
|
+
compositing, `@keyframes` and `transition`/`animation` timing functions,
|
|
95
|
+
`letter-spacing`, `text-transform`, `white-space: nowrap`,
|
|
96
|
+
`text-overflow: ellipsis`, inline-level `flex`/`grid`, `grid-area`,
|
|
97
|
+
`aspect-ratio`, auto margins, percentage heights inside a definite frame,
|
|
98
|
+
percentage `border-radius`, `outline`, tiled `background-size` for
|
|
96
99
|
`url()` layers, document CSS on SVG children and text-only vertical writing
|
|
97
100
|
mode. `filter: blur()` is still a documented approximation. If the archive is
|
|
98
101
|
missing for your platform, the build fails with an actionable message; design
|
|
@@ -82,10 +82,13 @@ import { createWindow, run } from "gui";
|
|
|
82
82
|
`requestAnimationFrame` 逐帧驱动,或写成 `transition: transform`(见
|
|
83
83
|
`examples/gui/pelican-svg`)。CSS 子集还覆盖 `@media`、`::before`/`::after`
|
|
84
84
|
生成内容、线性/径向多层背景、`calc()`、真正的 `text-shadow`/`box-shadow`
|
|
85
|
-
高斯模糊、`clip-path
|
|
85
|
+
高斯模糊、`clip-path`、圆角 `border-radius` 裁剪(含 `overflow: hidden` 框架
|
|
86
|
+
与替换内容)、`filter` 颜色效果、`backdrop-filter` 合成、
|
|
86
87
|
`@keyframes` 与 `transition`/`animation` 时间函数、`letter-spacing`、
|
|
87
|
-
`text-transform
|
|
88
|
-
|
|
88
|
+
`text-transform`、`white-space: nowrap`、`text-overflow: ellipsis`、行内级
|
|
89
|
+
`flex`/`grid`、`grid-area`、`aspect-ratio`、自动
|
|
90
|
+
外边距、确定高度框架内的百分比高度、百分比 `border-radius`、`outline`、
|
|
91
|
+
`url()` 图层的平铺
|
|
89
92
|
`background-size`、SVG 子元素上的文档 CSS,以及仅文本的竖排书写模式。`filter: blur()`
|
|
90
93
|
仍是有文档说明的近似。
|
|
91
94
|
因为主体是 C++,它以各平台预编译的 `gui.a`/`gui.lib` 形式分发。如果该
|
package/doc/gui/dom.md
CHANGED
|
@@ -29,7 +29,9 @@ combinators (descendant, child, adjacent and general sibling), the pseudo-classe
|
|
|
29
29
|
subset), numbers, keywords and shorthands (`margin`/`padding`/`border`/`flex`/
|
|
30
30
|
`font`/`outline`). `display: inline-flex`/`inline-grid` make a flex/grid
|
|
31
31
|
container inline-level; `grid-area`, `aspect-ratio`, `letter-spacing`,
|
|
32
|
-
`text-transform`, `
|
|
32
|
+
`text-transform`, `text-overflow` (`clip`/`ellipsis`), `white-space`
|
|
33
|
+
(`normal`/`nowrap`/`pre`/`pre-wrap`/`pre-line`), `writing-mode`
|
|
34
|
+
(`vertical-rl`/`vertical-lr` text),
|
|
33
35
|
`vertical-align` (length form), percentage `border-radius`, `background-size`
|
|
34
36
|
(size + default repeat for `url()` layers) and `currentColor` are parsed too.
|
|
35
37
|
`font-variant-numeric`, `text-wrap`, `text-rendering`, `touch-action`,
|
|
@@ -68,6 +70,72 @@ per-restyle arena. Layout inserts its box before/after the real children;
|
|
|
68
70
|
traversal, queries, `innerHTML` and `elementIndex()` never see it, and hit
|
|
69
71
|
testing targets the origin element.
|
|
70
72
|
|
|
73
|
+
### Unsupported features are reported
|
|
74
|
+
|
|
75
|
+
The subset above is a limit, not a silent one. The rest of the document still
|
|
76
|
+
renders — an unsupported element becomes an ordinary box (or stays hidden, for a
|
|
77
|
+
tag such as `<template>`), an unsupported declaration is dropped — but the first
|
|
78
|
+
use of each name is reported on stderr:
|
|
79
|
+
|
|
80
|
+
```text
|
|
81
|
+
xt_gui: warning: unsupported element <table>; the engine has no browser behaviour for it
|
|
82
|
+
xt_gui: warning: unsupported CSS property 'gap'; it is ignored
|
|
83
|
+
xt_gui: warning: unsupported at-rule '@supports'; its rule is ignored
|
|
84
|
+
xt_gui: warning: unsupported pseudo-class ':has'; it never matches
|
|
85
|
+
xt_gui: warning: unsupported CSS unit 'vmin'; the value is ignored
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Reporting is per name for the whole process, so one property used by many rules
|
|
89
|
+
or a cell repeated on every row appears once. The parser/cascade path reports:
|
|
90
|
+
|
|
91
|
+
- **HTML elements** with browser behaviour the engine lacks: `applet`, `area`,
|
|
92
|
+
`basefont`, `bgsound`, `blink`, `caption`, `col`, `colgroup`, `datalist`,
|
|
93
|
+
`details`, `dialog`, `embed`, `frame`, `frameset`, `iframe`, `input`,
|
|
94
|
+
`isindex`, `keygen`, `map`, `marquee`, `math`, `meter`, `noembed`, `noframes`,
|
|
95
|
+
`object`, `optgroup`, `option`, `output`, `param`, `plaintext`, `progress`,
|
|
96
|
+
`select`, `summary`, `table`, `tbody`, `td`, `template`, `textarea`, `tfoot`,
|
|
97
|
+
`th`, `thead`, `tr`, `track` and `xmp`. Every other tag — including `button`,
|
|
98
|
+
`label`, custom elements and a typo such as `<dvi>` — is rendered as a plain
|
|
99
|
+
box, which is the intended fallback rather than a dropped feature, so it is
|
|
100
|
+
not reported.
|
|
101
|
+
- **HTML attributes** that request unsupported behaviour: `href` (links do not
|
|
102
|
+
navigate), `srcset`, `sizes`, `poster`, `controls`, `contenteditable`,
|
|
103
|
+
`draggable`, `autofocus`, `tabindex`, `hidden`, and the SVG
|
|
104
|
+
`filter`/`mask`/`clip-path`/`marker-*` attributes.
|
|
105
|
+
- **CSS properties** outside the subset, and **length units** the parser does
|
|
106
|
+
not implement (`ch`, `ex`, `vmin`, `dvh`, …). A recognised property with an
|
|
107
|
+
unparsable value is not reported as unsupported; only the property name is
|
|
108
|
+
checked.
|
|
109
|
+
- **CSS at-rules** other than `@media`, `@font-face` and `@keyframes` (including
|
|
110
|
+
its vendor-prefixed spelling): `@supports`, `@layer`, `@container`,
|
|
111
|
+
`@import`, …
|
|
112
|
+
- **`@font-face` descriptors** other than `font-family`, `src`, `font-weight`
|
|
113
|
+
and `font-style` (`font-display`, `unicode-range`, …).
|
|
114
|
+
- **Selectors**: unsupported pseudo-classes (`:has`, `:is`, `:where`,
|
|
115
|
+
`:nth-of-type`, …), unsupported pseudo-elements (`::selection`, `::marker`, …),
|
|
116
|
+
and a selector the parser has to drop.
|
|
117
|
+
- **Media queries**: an unknown feature (`min-resolution`, `aspect-ratio`, …)
|
|
118
|
+
evaluates to false and is reported.
|
|
119
|
+
- **CSS functions** in a supported property when the engine does not implement
|
|
120
|
+
them: `hsl()`/`oklch()`/… colours, `perspective()`/`rotateX()` transforms,
|
|
121
|
+
`url()` filters, `path()` clip shapes, `conic-gradient()` backgrounds and
|
|
122
|
+
`counter()` generated content. An unsupported function invalidates the
|
|
123
|
+
declaration that uses it.
|
|
124
|
+
- **SVG elements** NanoSVG does not render: `<text>`, `<use>`, `<filter>` and the
|
|
125
|
+
`fe*` primitives, `<mask>`, `<clipPath>`, `<pattern>`, `<marker>`, `<image>`,
|
|
126
|
+
`<foreignObject>` and animation elements. They are reported when an inline
|
|
127
|
+
`<svg>` is serialized for painting (an `<img src="…svg">` file goes through
|
|
128
|
+
NanoSVG directly and is outside this check).
|
|
129
|
+
|
|
130
|
+
`XT_GUI_NO_WARNINGS=1` silences the reports. On Windows a GUI program is a
|
|
131
|
+
Windows-subsystem executable, so stderr is visible only with `app.console: true`
|
|
132
|
+
(see [API](./api.md)). The warnings do not affect the exit status.
|
|
133
|
+
|
|
134
|
+
This is a parser/cascade audit, not a complete API audit: an unsupported *value*
|
|
135
|
+
of a supported property (`display: contents`, for example), a DOM method that is
|
|
136
|
+
a deliberate no-op and a WebGL entry point the backend does not implement remain
|
|
137
|
+
silent (the Canvas and WebGL pages document their subsets).
|
|
138
|
+
|
|
71
139
|
## Interactive DOM (M8)
|
|
72
140
|
|
|
73
141
|
`win.document` returns the document handle; element handles have stable identity
|
package/doc/gui/known-issues.md
CHANGED
|
@@ -64,7 +64,11 @@
|
|
|
64
64
|
*class change* on a flex container has also been observed to crash the same
|
|
65
65
|
way; `examples/gui/pelican-bike` reveals its game-over overlay with `opacity`
|
|
66
66
|
instead.
|
|
67
|
-
- **CSS coverage is a deliberate subset.**
|
|
67
|
+
- **CSS coverage is a deliberate subset.** Unsupported property names, at-rules,
|
|
68
|
+
selectors, functions, units, attributes and elements (see
|
|
69
|
+
[DOM](./dom.md#unsupported-features-are-reported)) are reported once on stderr
|
|
70
|
+
rather than silently dropped, so a ported page shows what fell back. Grid,
|
|
71
|
+
`calc()` (including
|
|
68
72
|
nested arithmetic and `calc()` inside `min()`/`max()`/`clamp()`),
|
|
69
73
|
`clamp()`/`min()`/`max()`/`env()`, `var()` custom properties, the `inset`
|
|
70
74
|
shorthand, `box-sizing`, `visibility` and `pointer-events`, `@media` queries,
|
|
@@ -72,9 +76,11 @@
|
|
|
72
76
|
backgrounds, `text-shadow` (true Gaussian), `box-shadow` (outer/inset, spread,
|
|
73
77
|
multiple layers), `clip-path` (`inset`/`circle`/`ellipse`/`polygon`),
|
|
74
78
|
`filter` colour functions, `@keyframes` animations, the full `transition`
|
|
75
|
-
timing-function set, `letter-spacing`, `text-transform`,
|
|
79
|
+
timing-function set, `letter-spacing`, `text-transform`,
|
|
80
|
+
`white-space: nowrap`, `text-overflow: ellipsis`, inline-level
|
|
76
81
|
`flex`/`grid`, `grid-area`, `aspect-ratio`, auto margins, percentage
|
|
77
|
-
`border-radius
|
|
82
|
+
`border-radius` (including rounded `overflow` clipping of children and
|
|
83
|
+
replaced content), `outline`, `background-size` tiling for `url()` layers and
|
|
78
84
|
document CSS on SVG children (`fill`/`stroke`/…) are implemented. Known
|
|
79
85
|
limits: `background-clip`, `background-position` and `background-repeat`
|
|
80
86
|
remain unimplemented (`background-size` covers the tiled default);
|
|
@@ -87,8 +93,9 @@
|
|
|
87
93
|
groups fall back to normal source-over painting and the backdrop filter is
|
|
88
94
|
skipped. `filter: blur()` is still a nine-tap per-shape spread rather than a
|
|
89
95
|
true group blur, so overlapping descendants can darken; `drop-shadow` is
|
|
90
|
-
approximated from box silhouettes; at most
|
|
91
|
-
|
|
96
|
+
approximated from box silhouettes; at most four nested clip shapes (CSS
|
|
97
|
+
`clip-path` and rounded `overflow` boxes together) are intersected (deeper
|
|
98
|
+
nesting keeps the outer four); and images/canvases are not
|
|
92
99
|
colour-filtered except for the brightness/opacity tint the image shader can
|
|
93
100
|
carry. Canvas textures are sampled nearest-neighbour. Background gradients
|
|
94
101
|
(linear and radial) are rasterised per pixel into a texture and then stretched
|
package/doc/gui/layout.md
CHANGED
|
@@ -10,11 +10,14 @@ with absolute (viewport-relative) geometry:
|
|
|
10
10
|
|
|
11
11
|
- **Block flow** — block-level children stack vertically; `display: none`
|
|
12
12
|
generates no box; `width: auto` fills the containing block, `height: auto`
|
|
13
|
-
wraps the content.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
wraps the content. A percentage `height` resolves against the containing
|
|
14
|
+
block's **definite** content height (a frame sized by `height`/`clamp()` hands
|
|
15
|
+
its used height down to its children); when no definite height is known along
|
|
16
|
+
that chain, it is treated as `auto`. The box
|
|
17
|
+
model (margin/padding/border) is resolved, including percentages against the
|
|
18
|
+
containing block width. Adjoining vertical margins between siblings collapse
|
|
19
|
+
to `max(positive) + min(negative)`; a parent's bottom margin does not collapse
|
|
20
|
+
with its last child's (see the limitations below).
|
|
18
21
|
- **Inline flow** — consecutive inline-level children form an anonymous inline
|
|
19
22
|
formatting context with greedy, word-based line breaking, `text-align` and
|
|
20
23
|
`line-height`. Inline elements get the union of their descendants' geometry;
|
|
@@ -23,6 +26,10 @@ with absolute (viewport-relative) geometry:
|
|
|
23
26
|
that overlap it, so later lines wrap around them.
|
|
24
27
|
Each text fragment remembers the run it covers, so paint can shape it. Text is
|
|
25
28
|
measured with the stb_truetype stack (see [Text stack](./rendering.md#text-stack-m4b)).
|
|
29
|
+
`white-space: nowrap` stops a run from wrapping at spaces (a source newline
|
|
30
|
+
collapses to a space); `text-overflow: ellipsis` on a box whose `overflow` is
|
|
31
|
+
not `visible` replaces the part of an overflowing line that does not fit with
|
|
32
|
+
a single U+2026 ellipsis and drops the rest.
|
|
26
33
|
- **Flexbox** — `row`/`column` (and the `-reverse` variants) with `gap`,
|
|
27
34
|
`flex-basis`/`flex-grow`/`flex-shrink`, `justify-content` and `align-items`
|
|
28
35
|
(including `stretch` when the cross size is definite). On both axes the main
|
|
@@ -99,7 +106,13 @@ with absolute (viewport-relative) geometry:
|
|
|
99
106
|
enclose them.
|
|
100
107
|
- **`overflow` clipping** — a box with `overflow: hidden` (or `scroll`/`auto`)
|
|
101
108
|
clips its subtree to its padding box, intersected with any ancestor clip; the
|
|
102
|
-
renderer applies the result with a GPU scissor rectangle.
|
|
109
|
+
renderer applies the result with a GPU scissor rectangle. A `border-radius`
|
|
110
|
+
rounds that clip: the padding box becomes a triangulated polygon that joins
|
|
111
|
+
the `clip-path` intersection, so a circular avatar frame trims the square
|
|
112
|
+
artwork inside it instead of only cutting the corners off its bounding box.
|
|
113
|
+
The same radius clips the box's own background images/gradients and replaced
|
|
114
|
+
content (`<img>`, `<canvas>`, `<video>`, inline `<svg>`), so a bare
|
|
115
|
+
`border-radius: 50%` rounds an image even without `overflow`. There is no
|
|
103
116
|
scrolling yet, so `scroll`/`auto` clip like `hidden`.
|
|
104
117
|
|
|
105
118
|
Not yet implemented: parent/child and empty-block margin collapsing, anonymous
|
package/doc/gui/rendering.md
CHANGED
|
@@ -11,8 +11,10 @@ emits a backend-agnostic `DisplayList`: a painter-order `ops` list of
|
|
|
11
11
|
**text runs** (each carrying its text, colour and resolved `FontSpec`) and
|
|
12
12
|
**images**, backed by parallel payload arrays. Each op also carries the active
|
|
13
13
|
clip rectangle (the padding box of the nearest `overflow: hidden` ancestor) and
|
|
14
|
-
up to
|
|
15
|
-
`
|
|
14
|
+
up to four indices into the display list's triangulated clip polygons — CSS
|
|
15
|
+
`clip-path` shapes plus the rounded padding boxes of `overflow` ancestors with a
|
|
16
|
+
`border-radius` — so `overflow`/`clip-path` clipping and `z-index` ordering
|
|
17
|
+
survive into the renderer, and a circular avatar frame really is a circle.
|
|
16
18
|
`DisplayList::dump()` feeds `paintList()`/`paintCount()`.
|
|
17
19
|
|
|
18
20
|
`opacity` multiplies the alpha of every colour painted by the box and its
|
|
@@ -28,7 +30,9 @@ Hiding and revealing a layer with `opacity: 0` on the hidden state is what
|
|
|
28
30
|
per window (shapes, glyph quads and images) and merges consecutive ops that
|
|
29
31
|
share a pipeline, clip and texture into **draw runs**. Each run is drawn with
|
|
30
32
|
its own GPU scissor rectangle (scaled to device pixels), so painter order and
|
|
31
|
-
`overflow` clipping are applied per op through the SDL_GPU graphics pipelines
|
|
33
|
+
`overflow` clipping are applied per op through the SDL_GPU graphics pipelines;
|
|
34
|
+
the scissor is only the bounding rectangle, while rounded `overflow` clips and
|
|
35
|
+
`clip-path` shapes are cut into the vertex geometry described below:
|
|
32
36
|
|
|
33
37
|
- The shared pipelines are created lazily from the device's supported shader
|
|
34
38
|
format. Each of SDL_GPU's three backends consumes a different binary and none
|
|
@@ -154,12 +158,15 @@ therefore shows as a `backdrop …` op in `paintList()`.
|
|
|
154
158
|
|
|
155
159
|
**`clip-path`** is resolved in `paint_clip.cpp` to a device-space polygon (the
|
|
156
160
|
box transform is applied to every point), triangulated with ear clipping, and
|
|
157
|
-
stored on `DisplayList::clip_paths`.
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
161
|
+
stored on `DisplayList::clip_paths`. A rounded `overflow` clip uses the same
|
|
162
|
+
representation: each corner is a short chord approximation, so the polygon is
|
|
163
|
+
convex and the scissor rectangle is only its bounding box. Ops carry up to four
|
|
164
|
+
path indices on their `PaintClip`; `renderer_clip.cpp` intersects each convex
|
|
165
|
+
shape/glyph/image quad with those triangles at upload time (the quad is clipped
|
|
166
|
+
by one path, and each resulting piece by the next). The result is exact even
|
|
167
|
+
for concave `polygon()` shapes, needs no stencil or shader change, and the edges
|
|
168
|
+
are hard (no analytic antialiasing). Nesting deeper than four shapes keeps the
|
|
169
|
+
outermost four.
|
|
163
170
|
|
|
164
171
|
**`filter`** colour functions (`brightness`, `contrast`, `grayscale`, `sepia`,
|
|
165
172
|
`invert`, `saturate`, `hue-rotate`, `opacity`) are folded into each painted
|
package/doc/requirements.md
CHANGED
|
@@ -170,9 +170,11 @@ winget install -e --id Microsoft.VisualStudio.2022.BuildTools `
|
|
|
170
170
|
--override "--quiet --wait --add Microsoft.VisualStudio.Workload.VCTools --add Microsoft.VisualStudio.Component.VC.Llvm.Clang --includeRecommended"
|
|
171
171
|
```
|
|
172
172
|
|
|
173
|
-
The LLVM bundled with Visual Studio
|
|
174
|
-
|
|
175
|
-
|
|
173
|
+
The LLVM bundled with Visual Studio (`VC\Tools\Llvm\x64\bin\clang.exe`) is what
|
|
174
|
+
`scripts/setup-vs-toolchain.ps1` selects. `xbintsc` probes both install layouts —
|
|
175
|
+
the year-named one (`2019`, `2022`) and the version-numbered one used by Visual
|
|
176
|
+
Studio 2026 and later (`18\Community`, `18\Insiders`, …) — so a newer installation
|
|
177
|
+
is found without setting `xbintsc_CLANG`. A standalone LLVM also works for
|
|
176
178
|
`xbintsc` itself (`winget install -e --id LLVM.LLVM`), but the GUI/media archive
|
|
177
179
|
builds and the CI setup use the Visual Studio one so one toolchain produces the
|
|
178
180
|
runtime, the archives and the final binary. Either way the compiler must target
|