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

Unified Diff: LayoutTests/css3/calc/calc-with-percent-and-number-in-line-height-crash.html

Issue 787073006: Fix number handling in accumulatePixelsAndPercent. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Release parsedCalculation Created 5 years, 11 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/css3/calc/calc-with-percent-and-number-in-line-height-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/css3/calc/calc-with-percent-and-number-in-line-height-crash.html
diff --git a/LayoutTests/fast/css/inputtext-crash.html b/LayoutTests/css3/calc/calc-with-percent-and-number-in-line-height-crash.html
similarity index 50%
copy from LayoutTests/fast/css/inputtext-crash.html
copy to LayoutTests/css3/calc/calc-with-percent-and-number-in-line-height-crash.html
index a8ca2f52c0893322d6123852c0a5be969b8bfa3d..2f7dd03a48de36fbdc13411d25f891d37299ffca 100644
--- a/LayoutTests/fast/css/inputtext-crash.html
+++ b/LayoutTests/css3/calc/calc-with-percent-and-number-in-line-height-crash.html
@@ -1,8 +1,10 @@
<!DOCTYPE html>
<style>
- inputtext::content:focus { }
+* {
+ line-height: calc(100% + 30);
+}
</style>
-// This test passes if it doesn't crash.
+<p>PASS if it does not crash in debug.</p>
<script>
if (window.testRunner)
testRunner.dumpAsText();
« no previous file with comments | « no previous file | LayoutTests/css3/calc/calc-with-percent-and-number-in-line-height-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698