Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[cairo] Solid stroke of lines with thickness less than 1 pixel broken…
… after r191658 https://bugs.webkit.org/show_bug.cgi?id=151947 Reviewed by Martin Robinson. Source/WebCore: Test: mathml/presentation/radical-bar-visibility.html * platform/graphics/cairo/GraphicsContextCairo.cpp: (WebCore::GraphicsContext::drawLine): Force a minimal thickness of 1px LayoutTests: Add a test to check that the radical overbar appears on the screen when it has thickness less than 1px. * mathml/presentation/radical-bar-visibility-expected-mismatch.html: Added. * mathml/presentation/radical-bar-visibility.html: Added. Canonical link: https://commits.webkit.org/170130@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@193743 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
80 additions
and 1 deletion.
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
@@ -0,0 +1,17 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>Radical bar visibility</title> | ||
<meta charset="utf-8"/> | ||
</head> | ||
<body> | ||
|
||
<p>This test passes if you see the radical bar.</p> | ||
|
||
<div> | ||
<!-- blue square to hide the radical symbol --> | ||
<div style="position: absolute; background: blue; width: 100px; height: 100px;"></div> | ||
</div> | ||
|
||
</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
@@ -0,0 +1,34 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<title>Radical bar visibility</title> | ||
<meta charset="utf-8"/> | ||
<style> | ||
math, msqrt { | ||
/* Latin Modern Math has | ||
RadicalRuleThickess = 40 | ||
em = 1000 | ||
So the actual rule thickness is 24 * 40 / 1000 = 0.96 < 1 pixel */ | ||
font-family: Latin Modern Math; | ||
font-size: 24px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
|
||
<p>This test passes if you see the radical bar.</p> | ||
|
||
<div> | ||
<div style="position: absolute"> | ||
<math> | ||
<msqrt> | ||
<mspace width="500px"/> | ||
</msqrt> | ||
</math> | ||
</div> | ||
<!-- blue square to hide the radical symbol --> | ||
<div style="position: absolute; background: blue; width: 100px; height: 100px;"></div> | ||
</div> | ||
|
||
</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
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