Skip to content

fix: Fix linear gradient border not working on Wasm - #6769

Merged
mergify[bot] merged 4 commits into
unoplatform:masterfrom
Youssef1313:issues/6751
Sep 3, 2021
Merged

mergify[bot] merged 4 commits into
unoplatform:masterfrom
Youssef1313:issues/6751

Conversation

@Youssef1313

@Youssef1313 Youssef1313 commented Aug 14, 2021 •

Copy link
Copy Markdown
Member

Hide whitespace changes for easier review of the test

GitHub Issue (If applicable): closes #

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

Linear gradient border not working

What is the new behavior?

Working:

image

PR Checklist

Please check if your PR fulfills the following requirements:

Other information

Internal Issue (If applicable):

@Youssef1313
Youssef1313 requested a review from a team August 14, 2021 13:25
@gitpod-io

gitpod-io Bot commented Aug 14, 2021

Copy link
Copy Markdown

@Youssef1313

Copy link
Copy Markdown
Member Author

@jeromelaban @MartinZikmund I'm surprised that CI didn't report screenshot differences.

@MartinZikmund

Copy link
Copy Markdown
Member

@Youssef1313 I think the problem with the currently supported version of gradient on border is that it does not work with rounded corners. Can you try to see what happens when you add some CornerRadius?

@Youssef1313

Copy link
Copy Markdown
Member Author

@MartinZikmund Indeed the radius doesn't seem to be working correctly:

radius

@Youssef1313

Copy link
Copy Markdown
Member Author

I'll remove the "closes" keyword part to keep the issue open since I couldn't yet figure out how to make the border work as expected in CSS. Tried various solutions I found on stackoverflow but none worked for me.

@carldebilly carldebilly left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's amazing! Good work! I didn't know it was possible to use background-image with linear-gradient. Good work.

@carldebilly

Copy link
Copy Markdown
Member

@Youssef1313
Is there a way to test this? I'm sure it should be possible...

@Youssef1313

Copy link
Copy Markdown
Member Author

@Youssef1313
Is there a way to test this? I'm sure it should be possible...

@carldebilly Not what I can think of :(
I thought these kind of regressions should be caught by screenshot comparing. If not, what do you suggest? It'd be tricky and very hard to test the color of specific pixels as it's not much predictable for a gradient border.

@carldebilly

Copy link
Copy Markdown
Member

@Youssef1313 I'm pretty sure it's possible to check for a color at one end and another one at the other end. We already have a system to allow a tolerance for color detection in UI tests...

@Youssef1313

Copy link
Copy Markdown
Member Author

@Youssef1313 I'm pretty sure it's possible to check for a color at one end and another one at the other end. We already have a system to allow a tolerance for color detection in UI tests...

Does the test look good?
Note: I didn't check the color exactly at the end because the color already existed at the corners before the fix. This is how it was looking before the fix:

image

@jeromelaban

Copy link
Copy Markdown
Member

It looks like the test is failing on both android and ios. Can you take a look at the screenshots to understand what's missing ?

@Youssef1313

Copy link
Copy Markdown
Member Author

@jeromelaban Are you okay with deactivating the test on iOS with a link to #6749?

@jeromelaban

Copy link
Copy Markdown
Member

@Youssef1313 yes, let's do this. Add a reference to the issue on the test. Thanks!

@MartinZikmund MartinZikmund added the ready-to-merge Automatically merge the PR once all '.mergify.yml' policies are met label Aug 31, 2021
@jeromelaban

Copy link
Copy Markdown
Member

@mergify
mergify Bot merged commit 0789a59 into unoplatform:master Sep 3, 2021
@Youssef1313
Youssef1313 deleted the issues/6751 branch September 3, 2021 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge Automatically merge the PR once all '.mergify.yml' policies are met

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants