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

Side by Side 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: Address comments 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 unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/css/calc-rounding-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <style>
2 #outerDiv, #innerDiv, #remainderDiv
3 {
4 background-color: green;
5 height: 100.5px;
6 }
7 #outerDiv
8 {
9 width: 100.5px;
10 background-color: red;
11 }
12 #innerDiv {
13 width: calc(100% - 10.5px);
14 float: left;
15 }
16 #remainderDiv
17 {
18 width: 10.5px;
19 float: left;
20 }
21 </style>
22 <script src="../../resources/check-layout.js"></script>
23 <body onload="checkLayout('#outerDiv')">
24 <p>Test that a calc() with a percentage against a containing block with a
25 fractional width does not round to integer.</p>
26 <div id="outerDiv" data-expected-width="100.5px" data-expected-height="100.5px ">
27 <div id="innerDiv" data-expected-width="90px" data-expected-height="100.5px" ></div>
28 <div id="remainderDiv" data-expected-width="10.5px" data-expected-height="10 0.5px"></div>
29 </div>
30 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/calc-rounding-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698