| Summary: | border-color: transparent breaks border-image rendering | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Richard Hallas <Richard> |
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | koivisto, simon.fraser, smoley, twilco.o, webkit-bug-importer, zalan |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari Technology Preview | ||
| Hardware: | Mac | ||
| OS: | macOS 10.15 | ||
| Attachments: | |||
|
Description
Richard Hallas
2020-10-19 04:24:37 PDT
There are definitely inconsistencies with this property. For example, given:
div {
width: 400px;
height: 400px;
-webkit-border-image: url(house.jpg) 16 repeat;
border-image: url(house.jpg) 16 repeat;
}
WebKit renders a 1px solid border image, while Chromium and Gecko render nothing. Adding `border-style: solid` causes Chrome and Firefox to match WebKit.
However, this isn't the issue you're describing, and I haven't been able to reproduce it using just the above CSS and toggling you've described.
Can you please attach a minimal reproduction of this issue as a zip (HTML + image)?
Apple internal see also rdar://58451473 The 'border-color: transparent;' is breaking it. Created attachment 412386 [details]
Testcase
Various bugs here. Compare https://codepen.io/smfr/pen/mdEWNEQ with other browsers. First issue is that style().hasVisibleBorder() is wrong with transparent colors and border-image. Created attachment 412442 [details]
Simple demo of the problem using code and border image extracted from the site that exhibits the problem (www.careyblyton.com)
Tyler Wilcock requested a minimal reproduction of this bug as a single HTML file and image. I apologise for not having been able to do this sooner, but here it is.
Thanks. In the meantime, removing border-color:transparent from your content should fix it. Very many thanks for the assistance. Removing border-color:transparent does indeed fix the site's problems. r281724 might make this easier to fix now. Indeed this is fixed in STP. |