-
Notifications
You must be signed in to change notification settings - Fork 714
[css-backgrounds] a no-repeat
option for border-image-repeat
#7457
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
Comments
What happens if the box is too small to accommodate the entire center image? Do we just clip it, or do we want to scale it down? |
ahh, honestly hadn't thought about the |
It looks like there are 3 different possibilities right now for when there isn't room for a whole iteration of the edge image. The current |
some jury-rigged live |
I agree with that. Though I can imagine that there may be cases in which scaling it down or clipping it could be desired results. Having said that, to let this feature find its way into the spec., I think it'd be best to add it with the removing behavior first. Sebastian |
@jsnkuhn The example in your last comment could be covered by having clipping behavior for For cases like that (but maybe without title), it would probably better to allow multiple border images. So you could define the first one using Sebastian |
Ran into 2 other examples with centered design elements but once again not sure if I.E. slices for fixed corner and the center sizes but allow the remaining edge bits to stretch to fill the space? |
https://ffvii-remake-intergrade.square-enix-games.com/en-us/ Currently done with a bunch of presentational divs. This one seems even more like it would really need the 5x5 slice. or 3x3 for just the corners and the solid line plus a single |
https://www.zelda.com/tears-of-the-kingdom/ This might be more of a |
@jsnkuhn Your two examples before the last one seem to be better served through a 5x5 grid or multiple border images instead of a Sebastian |
it occurs to me that It also seems worth pointing out that this should apply to both |
https://drafts.csswg.org/css-backgrounds-3/#border-image-repeat
a
no-repeat
option forborder-image-repeat
that would center the sliced edges likerepeat
does but would NOT fill in the empty space with repeated tiles.this would allow developers to create border-images with centered edges like this:
The text was updated successfully, but these errors were encountered: