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

baseline-source #801

Closed
1 task done
bfgeek opened this issue Jan 11, 2023 · 3 comments
Closed
1 task done

baseline-source #801

bfgeek opened this issue Jan 11, 2023 · 3 comments
Assignees
Labels
Fast track? Resolution: satisfied The TAG is satisfied with this design Venue: CSS WG

Comments

@bfgeek
Copy link

bfgeek commented Jan 11, 2023

Wotcher TAG!

I'm requesting a TAG review of the baseline-source CSS property.

The baseline-source property allows web developers to specify if an inline-level box should use the first or last baseline for alignment within an line-box.

Today the default behaviour is confusing for web developers. Consider:

test <div style="display: inline-block;">line1<br>line2</div>
test <div style="display: inline-flex;">line1<br>line2</div>

The "inline-block" will align to the last baseline, and the "inline-flex" will align to the first baseline.

baseline-source: auto is the existing (confusing) behaviour.

Web developers can specify baseline-source: first or baseline-source: last to directly determine how they want these boxes to align within a line-box.

See demo here: https://twitter.com/bfgeek/status/1612518098611089408

  • Explainer¹ (minimally containing user needs and example code): [url] See above
  • Specification URL: [spec url]
  • Tests: [wpt folder(s), if available]
  • User research: [url to public summary/results of research]
  • Security and Privacy self-review²: [url]
  • GitHub repo (if you prefer feedback filed there): [url]
  • Primary contacts (and their relationship to the specification):
  • Organization(s)/project(s) driving the specification: Google
  • Key pieces of existing multi-stakeholder review or discussion of this specification:
  • External status/issue trackers for this specification (publicly visible, e.g. Chrome Status): https://chromestatus.com/feature/5730575560736768

Further details:

  • I have reviewed the TAG's Web Platform Design Principles
  • Relevant time constraints or deadlines: Implementation complete.
  • The group where the work on this specification is currently being done: CSSWG
  • The group where standardization of this work is intended to be done (if current group is a community group or other incubation venue): CSSWG
  • Major unresolved issues with or opposition to this specification: No major issues.
  • This work is being funded by: Blink implementation is being done by Google.

💬 leave review feedback as a comment in this issue and @-notify [github usernames]

@fantasai
Copy link

TAG review of this feature should be in conjunction with the other features that inter-relate, i.e. all the longhands of vertical-align and the dominant-baseline property. I don't think an isolated review of baseline-source by itself would really have much utility or interest from an architectural perspective otherwise.

@LeaVerou
Copy link
Member

We looked at this today in a breakout. We don't think there are any architectural issues with it and we're fine with it moving forwards. We wondered if the property needs more values than first and last, or whether all these baseline properties need a shorthand tying them together and providing shortcuts for common cases, but these are also things that can be added later.

Thank you for flying TAG!

@LeaVerou LeaVerou added Resolution: satisfied The TAG is satisfied with this design and removed Progress: untriaged labels Jan 16, 2023
@fantasai
Copy link

There is a shorthand, it's called vertical-align. I pointed this out in the comment earlier.

@kojiishi kojiishi mentioned this issue Mar 15, 2023
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fast track? Resolution: satisfied The TAG is satisfied with this design Venue: CSS WG
Projects
None yet
Development

No branches or pull requests

3 participants