question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Specific border radius corner causes visual bug on other corners

See original GitHub issue

Environment

React Native Environment Info:
  System:
    OS: macOS High Sierra 10.13.4
    CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
    Memory: 2.98 GB / 16.00 GB
    Shell: 5.3 - /bin/zsh
  Binaries:
    Node: 8.14.0 - ~/.nvm/versions/node/v8.14.0/bin/node
    Yarn: 1.12.3 - /usr/local/bin/yarn
    npm: 6.4.1 - /usr/local/bin/npm
  SDKs:
    Android SDK:
      API Levels: 23, 27
      Build Tools: 27.0.3
  IDEs:
    Xcode: /undefined - /usr/bin/xcodebuild
  npmPackages:
    react: 16.6.0-alpha.8af6728 => 16.6.0-alpha.8af6728
    react-native: 0.57.4 => 0.57.4
  npmGlobalPackages:
    react-native-cli: 2.0.1

Description

Applying a non-zero border radius value to a specific corner when all other corners are zero, causes the other corners to become slightly curved on Android.

screenshot_20181204-162242

Reproducible Demo

Code Snippet:

<View style={{
  backgroundColor: 'red',
  width: 100,
  height: 100,
  borderWidth: 5,
  borderBottomLeftRadius: 15,
}} />
<View style={{
  backgroundColor: 'green',
  borderWidth: 5,
  width: 100,
  height: 100,
}} />

Expo Snack:

https://snack.expo.io/@atkinchris/border-radius-bug

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Nizariuscommented, Apr 10, 2019

@kelset this bug is really annoying in my project. Let’s not wait a few months:) I made PR for fixing it.

1reaction
jigzcommented, Jan 22, 2019

is this somehow connected to my bug? img_0092

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix: specific border radius corner causes visual bug on other corners ...
I understand the motivation of adding extraRadiusForOutline to corner radius: without it there can be an empty space between border and view's background...
Read more >
css - border-radius not working - Stack Overflow
My problem was border-collapse. It was set to: border-collapse: collapse; I set it to:
Read more >
81556 - Outline property doesn't honor border radius - chromium
Couldn't agree more with timothyc, the bug doesn't even mention an outline-radius property anyway -- only that the outline doesn't honor border-radius.
Read more >
Border Radius and border style with Chrome bug? - CSS-Tricks
When applying a border to an image that also has a radius of say 30px, in Chrome, the border disappears on the corners,...
Read more >
Browser Zoom - Why Does It Break Your Page And How To ...
This happens because the background image is rasterized and, when zoomed, it cannot stretch evenly with the other parts of the page. I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found