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-logical-1] Are physical properties logical properties? #11702

Closed
cdoublev opened this issue Feb 13, 2025 · 2 comments
Closed

[css-logical-1] Are physical properties logical properties? #11702

cdoublev opened this issue Feb 13, 2025 · 2 comments
Labels
Closed as Question Answered Used when the issue is more of a question than a problem, and it's been answered. css-logical-1 Current Work

Comments

@cdoublev
Copy link
Collaborator

My understanding was that logical properties represent both flow-relative and physical properties, since they are included in logical property groups.

But the spec differentiates logical and physical properties in this sentence (and possibly elsewhere):

Unless otherwise specified, shorthand properties that encompass both logical and physical longhands [...]

Can it be clarified please, at least for me in this issue?

@cdoublev cdoublev added the css-logical-1 Current Work label Feb 13, 2025
@Loirooriol
Copy link
Contributor

Maybe not explicitly defined, but "logical" is used as a synonym of "flow-relative", e.g.

https://drafts.csswg.org/css-logical-1/#abstract

This module introduces logical properties and values that provide the author with the ability to control layout through logical, rather than physical, direction and dimension mappings

https://drafts.csswg.org/css-logical-1/#intro

logical concepts like the “start” of a page or line map differently to physical concepts

So physical properties aren't logical.

@cdoublev
Copy link
Collaborator Author

The second quote answers the question I should I have asked for this issue, about the meaning of logical.

In my own words, logical qualifies a subject as obeying rules that are more abstract but easier to work with than the "universal" rules.

It is still confusing to me that physical properties have a mapping logic and are included in logical property groups. But as I never see someone else complaining about this, I guess this issue can be closed.

@cdoublev cdoublev added the Closed as Question Answered Used when the issue is more of a question than a problem, and it's been answered. label Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed as Question Answered Used when the issue is more of a question than a problem, and it's been answered. css-logical-1 Current Work
Projects
None yet
Development

No branches or pull requests

2 participants