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

Unified Diff: LayoutTests/fast/sub-pixel/sub-pixel-transparency-layer-expected.html

Issue 180163008: Fix sub-pixel handling of transparency layers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: I hate reitveldt Created 6 years, 10 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/sub-pixel/sub-pixel-transparency-layer-expected.html
diff --git a/LayoutTests/fast/sub-pixel/sub-pixel-transparency-layer-expected.html b/LayoutTests/fast/sub-pixel/sub-pixel-transparency-layer-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..84192c15fa374b586131505c6ea1dc7fa0390edb
--- /dev/null
+++ b/LayoutTests/fast/sub-pixel/sub-pixel-transparency-layer-expected.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+#subPixelContainer {
+ width: 101px;
+ height: 100px;
+ position: relative;
+}
+#subPixelContainer > div {
+ position: absolute;
+ width: 50px;
+ right: 0px;
+ height: 50px;
+ background-color: red;
+}
+#test {
+ opacity: 0.99;
+ position: relative;
+ height: 50px;
+ top: 0px;
+ padding: 0;
+ background-color: green;
+}
+</style>
+</head>
+<body>
+<div>This tests that transparency layers are properly aligned when on sub-pixel offsets. You should see no red.</div>
+<div id="subPixelContainer">
+ <div><div id="test"></div></div>
+</div>

Powered by Google App Engine
This is Rietveld 408576698