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

Add ::column pseudo-element feature. #2655

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

flackr
Copy link

@flackr flackr commented Feb 14, 2025

No description provided.

@github-actions github-actions bot added the feature definition Creating or defining new features or groups of features. label Feb 14, 2025
@flackr flackr force-pushed the column-pseudo branch 2 times, most recently from eedf61e to b5ef12a Compare February 18, 2025 22:37
@@ -0,0 +1,4 @@
name: ::column pseudo-element
description: The `::column` CSS pseudo-element represents the individual columns in a multi-column container and can snapped to and given associated `::scroll-marker` pseudo-elements.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
description: The `::column` CSS pseudo-element represents the individual columns in a multi-column container and can snapped to and given associated `::scroll-marker` pseudo-elements.
description: The `::column` CSS pseudo-element represents the individual columns of a multi-column layout container and can snapped to and given associated `::scroll-marker` pseudo-elements.

I don't understand the second part "and can be snapped to ...". Can you please elaborate what you mean here? I read through the spec a little, but also got confused.

Copy link
Author

Choose a reason for hiding this comment

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

I've tried to clear this up. In particular, there are a limited set of properties supported on ::column in the spec https://drafts.csswg.org/css-multicol-2/#column-pseudo:

The ::column pseudo-element accepts only a very limited set of properties:

scroll-margin, scroll-snap-align, and scroll-snap-stop (the scroll snap properties that apply to elements inside a scroll container)

These properties are to allow individual columns to be snapped to by its scrolling container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature definition Creating or defining new features or groups of features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants