mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
gfx: Clamp the font size we supply to Core Text to 0.01pt.
Core Text treats a font size of 0.0 as 12.0, which is obviously not what we want. Improves Twitter. Improves Reddit /r/rust. Closes #10492.
This commit is contained in:
parent
b214205ba9
commit
18fbf8cf30
6 changed files with 70 additions and 17 deletions
|
@ -2423,6 +2423,18 @@
|
|||
"url": "/_mozilla/css/inline_element_border_a.html"
|
||||
}
|
||||
],
|
||||
"css/inline_font_size_zero_a.html": [
|
||||
{
|
||||
"path": "css/inline_font_size_zero_a.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/inline_font_size_zero_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/inline_font_size_zero_a.html"
|
||||
}
|
||||
],
|
||||
"css/inline_hypothetical_box_a.html": [
|
||||
{
|
||||
"path": "css/inline_hypothetical_box_a.html",
|
||||
|
@ -8923,6 +8935,18 @@
|
|||
"url": "/_mozilla/css/inline_element_border_a.html"
|
||||
}
|
||||
],
|
||||
"css/inline_font_size_zero_a.html": [
|
||||
{
|
||||
"path": "css/inline_font_size_zero_a.html",
|
||||
"references": [
|
||||
[
|
||||
"/_mozilla/css/inline_font_size_zero_ref.html",
|
||||
"=="
|
||||
]
|
||||
],
|
||||
"url": "/_mozilla/css/inline_font_size_zero_a.html"
|
||||
}
|
||||
],
|
||||
"css/inline_hypothetical_box_a.html": [
|
||||
{
|
||||
"path": "css/inline_hypothetical_box_a.html",
|
||||
|
|
9
tests/wpt/mozilla/tests/css/inline_font_size_zero_a.html
Normal file
9
tests/wpt/mozilla/tests/css/inline_font_size_zero_a.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title></title>
|
||||
<link rel="match" href="inline_font_size_zero_ref.html">
|
||||
<div style="width: 600px; font-size: 0;">
|
||||
<div style="display: inline-block; width: 200px; background: blue; height: 50px;"></div>
|
||||
<div style="display: inline-block; width: 400px; background: green; height: 50px;"></div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title></title>
|
||||
<div style="width: 600px;">
|
||||
<div style="display: inline-block; width: 200px; background: blue; height: 50px;"></div><!--
|
||||
--><div style="display: inline-block; width: 400px; background: green; height: 50px;"></div>
|
||||
</div>
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue