Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Unified Diff: LayoutTests/fast/text-autosizing/inherited-multiplier.html

Issue 472893004: Apply the text autosizing multiplier in FontBuilder::updateComputedSize. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/text-autosizing/inherited-multiplier-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/text-autosizing/inherited-multiplier.html
diff --git a/LayoutTests/fast/text-autosizing/inherited-multiplier.html b/LayoutTests/fast/text-autosizing/inherited-multiplier.html
new file mode 100644
index 0000000000000000000000000000000000000000..70ac61de4a9a7ceda0f58311e581a8281e3121e4
--- /dev/null
+++ b/LayoutTests/fast/text-autosizing/inherited-multiplier.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta name="viewport" content="width=800">
+<style>
+ body {
+ font-size: 16px;
+ margin: 0;
+ overflow: hidden;
+ width: 800px;
+ }
+</style>
+<script src="resources/autosizingTest.js"></script>
+</head>
+<body>
+<div id="outer">
+ This test verifies that a text autosizing multiplier that is inherited from a
+ parent element's RenderStyle is reflected in the computed font size, even if the
+ specified font size is different and the next text autosizing pass doesn't alter
+ the multiplier.
+</div>
+<script>
+ var outer = document.querySelector('#outer');
+ var inner = document.createElement('div');
+ inner.innerText = outer.innerText;
+ inner.style.fontSize = '12px';
+ outer.appendChild(inner);
+</script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/fast/text-autosizing/inherited-multiplier-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698