summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/platform/fonts/font_vertical_position_type.h
blob: 7e05ad49e8cc35a1a35db46b16e3653c223de3fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef THIRD_PARTY_BLINK_RENDERER_PLATFORM_FONTS_FONT_VERTICAL_POSITION_TYPE_H_
#define THIRD_PARTY_BLINK_RENDERER_PLATFORM_FONTS_FONT_VERTICAL_POSITION_TYPE_H_

namespace blink {

enum class FontVerticalPositionType {
  // TextTop and TextBottom are the top/bottom of the content area.
  // This is where 'vertical-align: text-top/text-bottom' aligns to.
  // This is explicitly undefined in CSS2.
  // https://drafts.csswg.org/css2/visudet.html#inline-non-replaced
  TextTop,
  TextBottom,
  // Em height as being discussed in Font Metrics API.
  // https://drafts.css-houdini.org/font-metrics-api-1/#fontmetrics
  TopOfEmHeight,
  BottomOfEmHeight
};

}  // namespace blink

#endif  // THIRD_PARTY_BLINK_RENDERER_PLATFORM_FONTS_FONT_VERTICAL_POSITION_TYPE_H_