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

[border-image-slice] If border-image-slice area is too wide or too tall, where begins the painting: left side (Firefox) or centre (Chrome)? #38588

Closed
TalbotG opened this issue Feb 20, 2023 · 3 comments

Comments

@TalbotG
Copy link
Contributor

TalbotG commented Feb 20, 2023

Please load this test

http://www.gtalbot.org/BrowserBugsSection/CSS3Backgrounds/border-image-repeat-789-GT.html

in Firefox 110+ and in Chrome 110+.

The middle edge of the square is 2em wide or 2em tall. But the border-image that has been sliced can only fit one half of it. The question now becomes from which area should the slicing be done. Firefox starts from the top side and from left side. Chromium starts from the middle area. I think the specification is not utterly clear about this.

Both implementations are possible ... albeit I think Firefox's implementation makes more sense, seems more logical and meeting better a web author's expectations.

1 other test (please load it in Firefox and in Chrome) highlighting the difference in implementation:

http://www.gtalbot.org/BrowserBugsSection/CSS3Backgrounds/border-image-repeat-456-GT.html

Finally, this test

http://wpt.live/css/css-backgrounds/css3-border-image-repeat-repeat.html

must be revisited and re-evaluated once this issue has been resolved.

@fantasai
Copy link
Contributor

@TalbotG
Copy link
Contributor Author

TalbotG commented Feb 24, 2023

CSS3 Backgrounds, § 5.6 Drawing the Border Image, parg 3. states:
"
Position the first tile.

If the first keyword is repeat, the top, middle, and bottom
images are centered horizontally in their respective areas.
"

@TalbotG TalbotG closed this as completed Feb 24, 2023
@TalbotG
Copy link
Contributor Author

TalbotG commented Feb 25, 2023

I have been working on these 2 new tests related to this Issue which I hope to be able to submit very soon:

http://www.gtalbot.org/BrowserBugsSection/CSS3Backgrounds/border-image-repeat-repeat-001.html

http://www.gtalbot.org/BrowserBugsSection/CSS3Backgrounds/border-image-repeat-repeat-002.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants