Open
Bug 1306240
Opened 8 years ago
Updated 2 years ago
API for DevTools to show the baseline in a given element
Categories
(Core :: CSS Parsing and Computation, defect, P3)
Core
CSS Parsing and Computation
Tracking
()
NEW
People
(Reporter: pbro, Unassigned)
Details
CSS initial-letter is being implemented in bug 1223880 and I think this is typically the type of CSS feature that DevTools could help with.
In this particular example, it would help authors if they could *see* where the baselines inside a given element are. It would make it a lot easier for people to understand how initial-letter: 3; actually works.
There are also other CSS properties that are related to the concept of baseline, like vertical-align. And I think that in general, if DevTools could simply show where the baseline sits inside line boxes, that would really help people out.
Comment 1•8 years ago
|
||
I haven't been paying a lot of attention to Houdini work lately, so I'm not sure of the status of this draft, but there is https://drafts.css-houdini.org/font-metrics-api/ which is intended to be an API to get baseline (and other font metrics related) information.
Updated•8 years ago
|
Priority: -- → P3
The internal API to get a baseline is nsIFrame::GetLogicalBaseline:
https://hg.mozilla.org/mozilla-central/file/22b0444e1e3a/layout/generic/nsIFrame.h#l1085
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•