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

LibWeb: Ensure non-negative inner_bounding_rect dimensions #24032

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

SuntzuDragon
Copy link

@SuntzuDragon SuntzuDragon commented Apr 19, 2024

Another student project here!
Add checks to prevent negative width and height in inner_bounding_rect within get_outer_box_shadow_configuration.
This fixes issues with shadow corner swapping
due to incorrect bounding box dimensions.

Fixes part of: #23937

Add checks to prevent negative width and height in inner_bounding_rect
within get_outer_box_shadow_configuration.
This fixes issues with shadow corner swapping
due to incorrect bounding box dimensions.

Fixes: SerenityOS#23937
@github-actions github-actions bot added the 👀 pr-needs-review PR needs review from a maintainer or community member label Apr 19, 2024
Student project from the University of Utah!
This formula $1 + (r-1)^3$ is not being used for box shadow corner radius modification, but it should be (see last paragraph in section on [csswg](https://drafts.csswg.org/css-backgrounds/#shadow-shape)).

Issue (still may need to be applied for inner shadow boxes): SerenityOS#24033
@AtkinsSJ
Copy link
Member

Hi, this is failing a test: https://dev.azure.com/SerenityOS/SerenityOS/_build/results?buildId=46601&view=logs&j=2351e412-c793-598f-27f8-72c4f2d55ba1&t=ee375dfa-6b7d-514a-7789-3948d04c0dd3&l=2278

That's actually to be expected though. Please check that the test looks right, and then run the rebaseline script in Tests/LibWeb, passing the test's file path, to update the expectation. Then add that into your existing commit.

@BuggieBot
Copy link
Member

Hello!

One or more of the commit messages in this PR do not match the SerenityOS code submission policy, please check the lint_commits CI job for more details on which commits were flagged and why.
Please do not close this PR and open another, instead modify your commit message(s) with git commit --amend and force push those changes to update this PR.

Copy link

stale bot commented May 22, 2024

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions!

@stale stale bot added the stale label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👀 pr-needs-review PR needs review from a maintainer or community member stale student project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants