-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+56 KB
cobalt/layout_tests/testdata/cobalt/render-background-and-text-expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
56 changes: 56 additions & 0 deletions
56
cobalt/layout_tests/testdata/cobalt/render-background-and-text.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<!DOCTYPE html> | ||
<!-- Tracking complex rendering bugs --> | ||
<html> | ||
|
||
<head> | ||
<style> | ||
body { | ||
color: white; | ||
background-color: #000 !important; | ||
} | ||
#container { | ||
height: 720px; | ||
width: 1280px; | ||
position: absolute; | ||
} | ||
|
||
#problem { | ||
display: block; | ||
height: 100%; | ||
background-size: 50%; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<div id="container"> | ||
<div style="width: 800px; height: 700px; position: absolute"> | ||
<ytlr-playback-preview> | ||
<ytlr-tile-header-renderer style="width: 700px; height: 400px; display: block; width: 100%;"> | ||
<div style="height: 100%"> | ||
<div id="problem" | ||
style="background-image: url('baby_tux.png');"> | ||
</div> | ||
</div> | ||
<span>This is just some text</span> | ||
</ytlr-tile-header-renderer> | ||
</ytlr-playback-preview> | ||
</div> | ||
|
||
</div> | ||
<script> | ||
if (window.testRunner) { | ||
window.testRunner.waitUntilDone(); | ||
} | ||
window.onload = function () { | ||
window.testRunner.DoNonMeasuredLayout(); | ||
// Then, after waiting for the font to load for half of a second, go ahead | ||
// and take a snapshot. | ||
window.setTimeout(function () { | ||
window.testRunner.notifyDone(); | ||
}, 500); | ||
}; | ||
</script> | ||
</body> | ||
|
||
</html> |