Summary: | Implement baseline-source CSS property | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Tim Nguyen (:ntim) <ntim> | ||||||
Component: | CSS | Assignee: | Nobody <webkit-unassigned> | ||||||
Status: | NEW --- | ||||||||
Severity: | Normal | CC: | samuel, sebastianzartner, sgill26, sime.vidas, webkit-bug-importer, zalan | ||||||
Priority: | P2 | Keywords: | InRadar | ||||||
Version: | Safari Technology Preview | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Attachments: |
|
Description
Tim Nguyen (:ntim)
2022-12-11 07:52:45 PST
Created attachment 465773 [details]
A HTML file showcasing alignment issues with textareas
Textareas are a problematic area with regards to "vertical-align: baseline".
I'd expect elements with "vertical-align: baseline" in the same row of a table to be aligned together. As can be seen using the attached HTML file, the label, and the input texts are aligned, but the textarea text isn't.
Using "baseline-source: first" solves this issue in Chrome, it would be nice to have the same possibility in webkit. Firefox textareas don't have this issue.
Created attachment 465774 [details]
Screenshot of the textarea alignment issue
It’s worth mentioning that <textarea> does not have this issue in flex layouts with align-items: baseline. I have created a test page with flex layout instead of <table>: https://jsbin.com/cijerob/edit?css,output So it seems that baseline-source would be useful in <table>, but it’s not really needed in flex layouts. |