Commit Graph
13 Commits
Author SHA1 Message Date
ldm0 0fd6acacf7 fix(css): reify generated images and image lists 2026-10-11 18:06:45 +08:00
ldm0 4d37eb8246 fix(css): preserve typed units in native declarations
Retain CSSUnitValue doubles and units in declaration storage, including
percentages normalized to numbers by CSSOM. Preserve unrelated values
through compatibility writes and removals, and invalidate overwritten ones.

Share native style state with windowless elements across adoption. Publish
CSSOM declaration state before custom-element reactions so nested writes
remain visible. Preserve alias projection and overflow shorthand priority.

Validation: fmt, workspace all-targets/all-features clippy, and nextest
(20,583 passed, 16 skipped). Raw WPT: 2,108/2,233 across 98 pages, three
new passes and no regressions. HTTP/HTTPS behavior probes also passed.
2026-10-11 18:06:45 +08:00
ldm0 fe0b0b399d fix(css): reify all declarations as native keyword values
Project the native CSSWideKeyword for all into CSSKeywordValue while
preserving property-specific shorthand and unparsed-value behavior.
Cover parse/parseAll, declaration snapshots, realms, native-slot writes,
property-independent keyword reuse and invalid-write atomicity.
2026-10-11 18:06:45 +08:00
ldm0 8c7bb34a3c fix(css): preserve Typed OM numeric serialization semantics 2026-10-11 18:06:44 +08:00
ldm0 4bd4bd1139 feat(css): parse native Typed OM style values 2026-10-11 18:06:44 +08:00
ldm0 d0d608580f fix(cssom): preserve stylesheet EOF-open var values 2026-10-11 18:04:09 +08:00
ldm0 5d5f17115c fix(cssom): decode escaped property rule names 2026-10-11 18:04:09 +08:00
ldm0 04f066a9a5 fix(observers): parse margin defaults from CSS tokens
Treat comment-only and CSS-whitespace-only IntersectionObserver margin input as the empty default, and reject unitless zero and Unicode whitespace that is not CSS whitespace. The shared CSS token parser and native observer helper use the same contract. Tests cover malformed/empty comments, valid dimensions and invalid token classes.
2026-10-08 21:34:21 +08:00
ldm0 a05bb9287c fix(fonts): validate font set queries with Stylo 2026-10-02 02:23:18 +08:00
ldm0 f06370a4b7 feat(cssom): expose native font palette value rules
Expose CSSFontPaletteValuesRule with native parsing and read-only name, fontFamily, basePalette, and overrideColors descriptors. Attached rules read Stylo state; removed rules retain their descriptors through the existing native snapshot parser.

Regression coverage checks valid/invalid insertion, serialization, rule removal, native receiver brands, cross-realm access, and intrinsic constructor lookup.

Validation: fmt, strict workspace clippy, full nextest. Summary [ 104.120s] 18906 tests run: 18906 passed (9 slow), 16 skipped
2026-09-29 07:25:05 +08:00
ldm0 3330e01843 fix(cssom): parse comments in unicode ranges 2026-09-08 14:41:42 +08:00
ldm0 9cef93dc59 fix(css): honor document color schemes 2026-08-27 19:57:05 +08:00
ldm0 27b5135cb6 Public preview 2026-08-11 00:10:12 +08:00