[Webkit-unassigned] [Bug 92637] New: webkitRegionOverflow giving random value
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jul 30 05:21:33 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=92637
Summary: webkitRegionOverflow giving random value
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
OS/Version: Unspecified
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: CSS
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: johannes.wilm at sourcefabric.org
It seems that there is a bug in Chromium/Webkit that makes webkitRegionOverflow output random values. At times it says it fits, when it doesn't and at other times it says overflow, when it really does fit. The overset property of a NamedFlow gives the same random result.
The below code shows how I try to add new pages based on whether the previous is full.
You can check out the full example by including the JS/CSS from this project:https://github.com/sourcefabric/BookJS
function setupDocument() {
$('body').wrapInner('<div id="contents" />');
$('body').append('<div id="layout" />');
$('#layout').append('<div class="page"><div class="contents"></div><div class="pagenumber"></div></div>');
}
$(document).ready(function () {
setupDocument();
var lastColumnState;
var fillingPages = true;
setTimeout(function () {
while (fillingPages == true) {
lastColumnState = $(".page:last .contents")[0].webkitRegionOverflow;
if (lastColumnState == 'overflow') {
$('#layout').append('<div class="page"><div class="contents"></div><div class="pagenumber"></div></div>');
} else if (lastColumnState == 'fit' || lastColumnState == 'empty') {
fillingPages = false;
}
}
}, 1000);
});
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list