forked from burg/timelapse
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
<rdar://problem/4077676> Inline hole line adheres to the Japanese characters in inline hole This happens because the underline is always 2 pixels thick, and placed 3 pixels above the bottom of the text box. Test case added: * manual-tests/inline-input-marking.html: Added. Check that underlining of the inline input hole does not obscure the glyphs. * rendering/InlineTextBox.cpp: (WebCore::InlineTextBox::paintMarkedTextUnderline): Position underline at bottom of text box. Height of underline is reduced to 1 px when font's descent is less than or equal to 2 px. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15971 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
harrison
committed
Aug 22, 2006
1 parent
509e0a2
commit bd92f87
Showing
3 changed files
with
60 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<html> | ||
<head> | ||
|
||
<style> | ||
.editing { | ||
border: 2px solid red; | ||
padding: 12px; | ||
font-size: 24px; | ||
} | ||
.inputtest { | ||
font-family:'Hiragino Kaku Gothic Std'; | ||
border: 2px solid green; | ||
} | ||
</style> | ||
|
||
<title>Inline Input Method Marking</title> | ||
</head> | ||
<body> | ||
<p>This tests that the underlining of the inline input hole does not obscure the glyphs.</p> | ||
|
||
<ol> | ||
<li>Switch to Hirigana input method</li> | ||
<li>Type characters into each of the green blocks below</li> | ||
<li>As you do so, check that glyphs in the inline hole are clearly readable</li> | ||
</ol> | ||
<div contenteditable id="root" class="editing" style="width:400px;"> | ||
9px Hiragino Kaku Gothic Std<div class="inputtest" style="font-size: 9px;"><br></div> | ||
<br>12px Hiragino Kaku Gothic Std<div class="inputtest" style="font-size: 12px;"><br></div> | ||
<br>24px Hiragino Kaku Gothic Std<div class="inputtest" style="font-size: 24px;"><br></div> | ||
</div> | ||
|
||
<script> | ||
runEditingTest(); | ||
</script> | ||
|
||
</body> | ||
</html> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters