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

CSS Backgrounds and Borders #885

Open
stubbornella opened this issue Oct 10, 2024 · 4 comments
Open

CSS Backgrounds and Borders #885

stubbornella opened this issue Oct 10, 2024 · 4 comments
Labels
focus-area-proposal Focus Area Proposal

Comments

@stubbornella
Copy link

Description

There are various inconsistencies between browsers on how some kinds of borders and background render, and some newer features like background-clip: border-area/text that we should drive interop on. @smfr

This includes the following areas:

  • CSS border property and longhands
  • CSS border-image
  • CSS backgrounds property and longhands

Specification

various

Additional Signals

No response

@atjn
Copy link
Contributor

atjn commented Oct 22, 2024

This could potentially be bundled with these proposals:
#727
#713

@dholbert
Copy link

dholbert commented Dec 5, 2024

The proposed test list above includes this test:
https://wpt.fyi/results/css/css-borders/border-image-width-interpolation-math-functions.html

...which Firefox mostly fails, but not for any background/border-related reason; that's just a version of #867 where the test is doing something like sign(20rem - 20px).

@dholbert
Copy link

dholbert commented Dec 5, 2024

The proposed test list also includes this test:
https://wpt.fyi/results/css/css-borders/border-radius-greater-than-width.html
...which wpt.fyi shows Chrome/Firefox/Safari failing (and Edge passing). But if you click through to the "compare" view, it looks like all of the failures are just fuzzy mismatches along antialiased edges/curves. (This isn't entirely surprising, since the reference case uses clip-path to mock up a diagonal separator between two border colors, and there's no guarantee that this diagonal edge would get antialiased in exactly the same way between two adjacent border-sides vs. between overlapping diagonally-clipped elements.)

So: this test should be excluded from this focus area, since its failure is just a limitation of the test itself, and doesn't represent an actual interop issue. (Ideally the test should be adjusted to get a fuzzy allowance, or redesigned to avoid having this rendering difference in the first place; but that test fixup doesn't really need to happen as part of the interop effort.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
focus-area-proposal Focus Area Proposal
Projects
Status: No status
Development

No branches or pull requests

4 participants