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)

defect

Tracking

()

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.
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.
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.