-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
www.miekemosmuller.com - Text overflows the viewport #47903
Comments
to note that the text takes the normal size once it has been scrolled. This is related to .CONTENT {
position: relative;
display: grid;
display: -ms-grid;
max-width: 100%;
margin: 0 25px;
text-align: justify;
line-height: 18pt;
} When the image is out of view this is the markup. <p>
<img class="LZY" alt="Mieke Mosmuller" data-src="https://www.miekemosmuller.com/dimages/Blog297.jpg">
</p> This is controlled by document.addEventListener("DOMContentLoaded", function() {
var lazyloadImages;
if ("IntersectionObserver" in window) {
lazyloadImages = document.querySelectorAll("*[data-src]");
var imageObserver = new IntersectionObserver(function(entries, observer) {
entries.forEach(function(entry) {
if (entry.isIntersecting) {
var image = entry.target;
image.src = image.dataset.src;
image.removeAttribute("data-src");
image.classList.remove("LZY");
imageObserver.unobserve(image);
}
});
});
lazyloadImages.forEach(function(image) {
imageObserver.observe(image);
});
lazyloadElements = document.querySelectorAll("*[data-bgsrc]");
var backgroundObserver = new IntersectionObserver(function(
entries,
observer
) {
entries.forEach(function(entry) {
if (entry.isIntersecting) {
var element = entry.target;
element.style.backgroundImage = "url(" + element.dataset.bgsrc + ")";
element.removeAttribute("data-bgsrc");
backgroundObserver.unobserve(element);
}
});
});
lazyloadElements.forEach(function(element) {
backgroundObserver.observe(element);
});
} else {
lazyload();
window.addEventListener("load", lazyload);
document.addEventListener("scroll", lazyload);
window.addEventListener("resize", lazyload);
window.addEventListener("orientationChange", lazyload);
lazyloadBg();
window.addEventListener("load", lazyloadBg);
document.addEventListener("scroll", lazyloadBg);
window.addEventListener("resize", lazyloadBg);
window.addEventListener("orientationChange", lazyloadBg);
}
}); specifically here if (entry.isIntersecting) {
var image = entry.target;
image.src = image.dataset.src;
image.removeAttribute("data-src");
image.classList.remove("LZY");
imageObserver.unobserve(image);
} At this specific moment
The text gets the right size when That's an interesting issue. |
Close as duplicate of https://bugzilla.mozilla.org/show_bug.cgi?id=1613576 |
As noted on https://bugzilla.mozilla.org/show_bug.cgi?id=1613576 , this issue is reproducible in other browsers as well, so it's not a web-compatibility bug or a Firefox specific bug. It's just a bug in this website which is visible in Chrome on Android as well (due to a difference in behavior between how percent |
URL: https://www.miekemosmuller.com/nl/blog/ernst-en-spel
Browser / Version: Firefox Mobile 68.0
Operating System: Android 8.0.0
Tested Another Browser: Yes
Problem type: Desktop site instead of mobile site
Description: text to big for screen
Steps to Reproduce:
Text can't read end of every sentence right side
Screenshot
Browser Configuration
View console log messages
From webcompat.com with ❤️
The text was updated successfully, but these errors were encountered: