You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 58d80b4
Browse filesBrowse the repository at this point in the historyBrowse files
CSS engine: sync enumerations, tokens and leaf value types
Brings the vendored CSS engine's name tables and leaf value types up to
PeachPDF v0.9.6 (669ec1e), from the e5842c3 snapshot the port was taken at.
- PropertyNames: grid, logical box-model, aspect-ratio, font-palette and the
`@property`/`@font-palette-values` descriptors
- FunctionNames: basic shapes, grid functions, lab/oklab/lch/oklch/color-mix,
image-set/cross-fade/element
- Keywords, FeatureNames (the prefers-* set), PseudoClassNames (:where),
RuleNames and RuleType (`@property`, `@layer`, `@font-palette-values`)
- Combinators: static readonly -> const so they can be used as constant
patterns in switch statements
- RangeToken: drop the eagerly-expanded SelectedRange in favour of a ToValue()
override that re-emits the "U+" prefix
- Resolution: accept `x` as the alias for `dppx`
- Length: reject arbitrary non-length input parsing as zero in TryParse
Length also gets an HTML-Renderer-specific adaptation rather than the upstream
change. Upstream resolves absolute units against points (its layout unit);
this renderer's layout unit is the CSS pixel, and CssValueParser.ParseLength
already resolves 1in as 96px. The vendored table disagreed - `calc(1in)` gave
72 where `width: 1in` gave 96 - so the absolute-unit arms of ToPixels and the
inverse arms of To(Unit) are now 96dpi (CSS Values & Units 5.2), matching
ParseLength exactly. The fontAdjust px->pt hook is kept, since it mirrors
ParseLength's own font-size output flag.
0 commit comments