Rebase CSS trimmable PR onto latest net11.0#34010
Closed
Copilot wants to merge 6 commits into
Closed
Conversation
…ed on @(MauiCss) item count
- Add MauiCssEnabled=true to TestCases.HostApp.csproj since some UI tests use CSS functionality - Add unit tests for CSS-disabled scenarios in StyleTests.cs
- Update NotSupportedException messages to explain why CSS is disabled and how to enable it - Add MauiCssEnabled documentation to docs/design/FeatureSwitches.md - Added follow-up reminder comment to PR for dotnet/maui-docs update
Copilot
AI
changed the title
[WIP] Add support for trimmable stylesheets in MAUI
Rebase CSS trimmable PR onto latest net11.0
Feb 12, 2026
7ded7f1 to
66d1243
Compare
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
The original PR branch (
dev/simonrozsival/css-trimmable) cannot be rebased due to a grafted first commit containing a full repository snapshot (~1000 files) conflicting with 200+ files that evolved independently innet11.0.Analysis Completed
.github/,eng/,loc/,src/directoriesFiles Requiring CSS Changes
The actual feature changes are isolated to:
src/Core/src/RuntimeFeature.cs- Feature switch infrastructuresrc/Controls/src/Build.Tasks/- CSS build task modificationssrc/Controls/src/Core/Properties/AssemblyInfo.cs- Remove assembly-level StyleProperty attributessrc/Controls/src/Core/Registrar.cs- Move StyleProperty attributes here for trimmabilitysrc/Controls/src/Core/StyleSheets/Style.cs- CSS disabled runtime checkssrc/Controls/src/Core/VisualElement/VisualElement_StyleSheet.cs- CSS disabled runtime checkssrc/Controls/tests/Core.UnitTests/StyleSheets/StyleTests.cs- Unit tests for CSS-disabled scenariossrc/Controls/tests/TestCases.HostApp/Controls.TestCases.HostApp.csproj- Enable CSS for UI testsdocs/design/FeatureSwitches.md- DocumentationResolution Required
Manual intervention needed to:
net11.0HEAD (e64f7e7)Recommendation: Original author should recreate branch from current
net11.0, or approve programmatic extraction losing original commit structure.💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.