projects
/
platform
/
framework
/
web
/
crosswalk.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Upstream version 7.35.144.0
[platform/framework/web/crosswalk.git]
/
src
/
third_party
/
WebKit
/
LayoutTests
/
fast
/
sub-pixel
/
client-rect-has-subpixel-precision-expected.html
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<title>client rect precision test</title>
5
<style>
6
#test {
7
width: 5px;
8
height: 5px;
9
background: navy;
10
}
11
</style>
12
</head>
13
<body>
14
<div id="test"></div>
15
<div id="console">
16
Box above should be 5x5px.<br>
17
PASS: getBoundingClientRect reports width with subpixel precision (4.5) and clientWidth reports snapped size (5).<br>
18
</div>
19
</body>
20
</html>