Repository navigation
CSS checked against the specs (with Lean proofs), one test binary - #63
Merged
Merged
Conversation
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This was referenced Nov 23, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this change?
Stacked on #62 (base
android-rust); merge that first. Three commits:merge tests
blenderui's 64 integration test files become one binary,tests/suite/. Each file used to link the whole kit.theme,theme_custom,theme_own_keys,shadcn(the theme),text_metrics(BUI_UI_SCALE),host_start(the pixel scale; next to the others it caused an access violation) andimage_memory,video(counting allocators).profile.dev).cargo test --test suite parity::).lean proofs
proofs/(Lean 4.36, no dependencies, outside the Rust build): selector specificity is a total order,:where()adds nothing,:is()/:not()/:has()count as their most specific argument, adding a simple selector never lowers it.cascade_orderapplies declarations in is exactly CSS Cascade 5's, for normal and!importantdeclarations; a counterexample shows the old order wasn't.#eval vectorsprints the test cases a Rust test checks the parser against.css fixes
!importantreverses layers and origins.! importantand!IMPORTANTcount as important, also incss!.:has()specificity.:scopeinside@scope.:empty: every element matched it before.:has(+ x)and:has(~ x).:nth-last-child(An+B of S): the following siblings are answered on the source tree, like:has().remand the root units use the root's font size.rgb()channels clamp.light-dark(), system colors andprefers-color-schemefollow it. Windows re-render when the theme changes.element_bounds47.5, not 48). Painting snaps box edges to device pixels; canvases stay anti-aliased.How was it tested?
ctest --test-dir buildpassescargo testpasses forblenderuiat this commit; the whole workspace passed in the working treetests/suite/css_spec.rs(a regression test per fix, plus the Lean vectors) and the extendedtests/theme.rsbui-panelsandbui-chartstests also pass against these changes.lake buildinproofs/succeeds;#print axiomslists only Lean's standard axioms.Checklist
CHANGELOG.mdupdated (Unreleased)docs/rust.md, website CSS and testing pages)SPDX-License-Identifier: GPL-2.0-or-laterheader where the repo's files do (none of its Rust or Lean files have one)