• Xiaocheng Hu's avatar
    Stablize editing/selection/5232159.html for LayoutNG · ca53c434
    Xiaocheng Hu authored
    The layout test was introduced to verify the ability to select
    text on certain elements (*). Incidentally, it hit tests the 1px
    gap between two lines on Linux, which results in different behaviors
    between legacy and NG due to different line box sizing.
    
    This patch explicitly sets font metrics and line-height to stablize
    its behavior.
    
    (*) crrev.com/20a8d9a8
    
    Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng
    Change-Id: I44918bf049607110572fc479548f3c958770c8ba
    Reviewed-on: https://chromium-review.googlesource.com/1152216
    Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org>
    Commit-Queue: Koji Ishii <kojii@chromium.org>
    Reviewed-by: default avatarKoji Ishii <kojii@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#578546}
    ca53c434
enable-blink-features=LayoutNG 71.3 KB