Skip to content

Conversation

@caugner
Copy link
Contributor

@caugner caugner commented Jun 17, 2025

Summary

Mentions that Firefox/Safari recognize the avoid value for the break-before/after CSS properties, but it has no effect.

Test results and supporting details

Related issues

@github-actions github-actions bot added data:css Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS size:s [PR only] 7-24 LoC changed labels Jun 17, 2025
@caugner caugner requested a review from queengooborg June 17, 2025 11:56
@github-actions
Copy link
Contributor

Tip: Review these changes grouped by change (recommended for most PRs), or grouped by feature (for large PRs).

@ddbeck
Copy link
Contributor

ddbeck commented Jun 18, 2025

These should be marked as partially implemented (see guideline). This has a noticeable incompatibility impact as compared to a plain non-implementation:

In a non-implementer (as implied by "version_added": false):

break-after: left;
break-after: avoid; /* still `left` because this line is rejected */

In these cases:

break-after: left;
break-after: avoid; /* now in some buggy non-functional state */

@caugner
Copy link
Contributor Author

caugner commented Jun 20, 2025

These should be marked as partially implemented (see guideline).

The guideline points to #3904 for additional background, which actually removed partial_implementation: true from CSS properties that were recognized but had no effect.

As for your example of non-implementation vs "parses without effect": I trust that your assessment is accurate, but I still don't think this justifies setting partial_implementation: true. In particular, I don't see a significant difference to other cases where using an unimplemented feature may have some (unexpected) side-effects.

Here's a visualization of where I think we are on the spectrum between "no support" and "full support".

| no   |        partial        |     full |
|   x                                     |

Copy link
Contributor

@queengooborg queengooborg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While the policy does say to use partial implementation, we haven't really been doing that for most of the CSS features. The data guidelines about this need to be reviewed one way or another, but I think that it's important to get this note added now -- we can always come back to it once the data guidelines have been reviewed, especially as a bulk update might be needed anyways depending on the direction we wish to go.

@queengooborg queengooborg merged commit a9113c9 into main Jun 20, 2025
10 checks passed
@queengooborg queengooborg deleted the 22723-break-after-before-recognized-without-effect branch June 20, 2025 09:55
@ddbeck
Copy link
Contributor

ddbeck commented Jun 20, 2025

@caugner

The guideline points to #3904 for additional background, which actually removed partial_implementation: true from CSS properties that were recognized but had no effect.

That was a particular workaround for the peculiar situation of us not knowing when the partial appeared. To quote myself:

How about this as a compromise: merge this change as is, but open an issue inviting anyone who wants to to do to the research to find out when it was partially implemented. If we ever get that version number, we can switch to partial_implementation, but absent that data, leave this as false.

In this case we do have that information and have no such excuse. The current guideline (nor the more general one that I have proposed #26780, which you gave an LGTM) does not point to this outcome. If you think this should be the outcome, then I'd like to see what that a guideline would look like to permit such an outcome; this could have been a test vehicle for it.

@queengooborg I think it's disrespectful to merge this while there's still an active discussion about what needs to happen here, particularly before existing participants have had chance to respond to it. 👎

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

Labels

data:css Compat data for CSS features. https://developer.mozilla.org/docs/Web/CSS size:s [PR only] 7-24 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants