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-gaps-1] Computed value of [column|row]-rule-width with none|hidden style and lists of values #11494

Open
kbabbitt opened this issue Jan 13, 2025 · 2 comments

Comments

@kbabbitt
Copy link
Collaborator

Per CSS Multicol 1, if column-rule-style is none or hidden, then the computed value of column-rule-width will be 0.

Gaps 1 extends the definitions of the column-rule-* properties to allow for lists of values. It also seeks to preserve the existing behavior noted above for backwards compatibility. But in what cases should the backward compatibility behavior apply? I can see a couple of reasonable possibilities:

  1. If column-rule-style contains exactly one value and that value is none or hidden, then the computed value of column-rule-width is 0.
  2. If column-rule-style contains nothing other than none, hidden, or repeaters containing nothing other than none or hidden, then the computed value of column-rule-width is 0.

My inclination is towards 1. Does the WG agree? Any options I might have missed?

@Loirooriol
Copy link
Contributor

I'm assuming that repeat() is preserved at computed-value time, so it's not possible to just set to zero the width at the same index, right?

@kbabbitt
Copy link
Collaborator Author

I'm assuming that repeat() is preserved at computed-value time, so it's not possible to just set to zero the width at the same index, right?

Yes, and a similar consideration is that lists for different properties can repeat and have different lengths. For example:

column-rule-style: solid dashed none;
column-rule-width: 1px 2px;

Would give, in order from left to right: 1px solid, 2px dashed, (1px) none, 2px solid, 1px dashed, (2px) none.

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