Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Border Rendering Issue Roll-up #16387

Open
robloo opened this issue Jul 21, 2024 · 0 comments
Open

Border Rendering Issue Roll-up #16387

robloo opened this issue Jul 21, 2024 · 0 comments
Labels
Milestone

Comments

@robloo
Copy link
Contributor

robloo commented Jul 21, 2024

Describe the bug

This is a roll-up of all Border-related issues that should be addressed next.

  1. Border does not clip it's children. This becomes an issue for rounded corners especially after adding BackgroundSizing and we should follow UWP/WinUI here.
    • Support Clipping to rounded corners #2105
    • Complexity is not that high to close this since we now have all the clipping geometry already calculated (for BackgroundSizing). The concern is more is this a breaking change and if so when can we adopt it.
  2. Border.BoxShadow only ever worked with the simple rendering path (we let Skia do everything). With the advanced rendering path it doesn't work. This has been the case for quite some time but again is more noticeable with BackgroundSizing. Anything other than CenterBorder will force the complex rendering path and therefore loose the BoxShadow
  3. Corner radii greater than the height/width of a Border render differently depending on the simple/complex rendering path. Again, in the simple path we fallback to Skia which has a different behavior than the advanced rendering path (which works like WPF/UPW/WinUI).

To Reproduce

See each issue specifically

Expected behavior

No response

Avalonia version

11.1+

OS

Windows

Additional context

I intend to close these myself if others don't beat me to it. The timeframe for some may be 12.0.

@robloo robloo added the bug label Jul 21, 2024
@maxkatz6 maxkatz6 added this to the 11.x milestone Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants