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

Unified Diff: LayoutTests/fast/css/calc-rounding.html

Issue 845313010: Allow Length::nonNanCalculatedValue to take a LayoutUnit (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add reftest 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
Index: LayoutTests/fast/css/calc-rounding.html
diff --git a/LayoutTests/fast/css/calc-rounding.html b/LayoutTests/fast/css/calc-rounding.html
new file mode 100644
index 0000000000000000000000000000000000000000..0677d9f2a4bf5c664dc576ab91f6dd3fc143b35e
--- /dev/null
+++ b/LayoutTests/fast/css/calc-rounding.html
@@ -0,0 +1,25 @@
+<style>
+ #outerDiv, #innerDiv, #remainderDiv
+ {
+ background-color: green;
+ height: 100.5px;
+ }
+ #outerDiv
+ {
+ width: 100.5px;
+ background-color: red;
+ }
+ #innerDiv {
+ width: calc(100% - 10.5px);
+ float: left;
+ }
+ #remainderDiv
+ {
+ width: 10.5px;
+ float: left;
+ }
+</style>
+<div id="outerDiv">
+ <div id="innerDiv"></div>
+ <div id="remainderDiv"></div>
+</div>
« no previous file with comments | « no previous file | LayoutTests/fast/css/calc-rounding-expected.html » ('j') | Source/platform/LengthFunctions.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698