Safari 10.1 position: fixed - repaint bug
How do I make an safari 10.1 position: fixed - repaint bug?
Enable "paint flashing" and notice how this element repaints continuously when the scroll position is changed via JS. This does not happen in Safari 10, Chrome, or Firefox.. What is a safari 10.1 position: fixed - repaint bug? How do you make a safari 10.1 position: fixed - repaint bug? This script and codes were developed by Peter Hrynkow on 18 September 2022, Sunday.
Safari 10.1 position: fixed - repaint bug - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Safari 10.1 position: fixed - repaint bug</title> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="hero" id="hero"> <div class="hero-content"> <h1>Safari 10.1 position: fixed - repaint bug</h1> <p>Enable "paint flashing" and notice how the element with `position: fixed` repaints continuously as the scroll position is set by JavaScript. This does not happen in Safari 10, Chrome, or Firefox.
</p> <p><a href="https://bugs.webkit.org/show_bug.cgi?id=172911" target="_blank">Webkit Bug Ticket</a></p> </div>
</div>
<div class="tout"></div>
<div class="tout"></div>
<div class="tout"></div>
<div class="tout"></div>
<div class="tout"></div> <script src="js/index.js"></script>
</body>
</html>
Safari 10.1 position: fixed - repaint bug - Script Codes CSS Codes
.hero { height: 100vh; width: 100vw;
}
.hero-content { background: #0099ff; box-sizing: border-box; height: 100%; left: 50%; padding: 40px; position: fixed; top: 50%; -webkit-transform: translate3d(-50%, -50%, 0); transform: translate3d(-50%, -50%, 0); width: 100%;
}
.tout { background: #ccc; border: 4px solid #0066cc; height: 100vh; position: relative; width: 100vw; z-index: 20;
}
Safari 10.1 position: fixed - repaint bug - Script Codes JS Codes
'use strict';
{ (function () { var hero = document.getElementById('hero'); var render = function render() { window.scrollBy(0, 1); requestAnimationFrame(render); }; render(); })();
}
Developer | Peter Hrynkow |
Username | peterhry |
Uploaded | September 18, 2022 |
Rating | 3 |
Size | 2,746 Kb |
Views | 52,624 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
CSS Starbursts | 2,605 Kb |
Kris Kross Hamburger | 2,517 Kb |
Curved type with SVG | 2,922 Kb |
Ripple Effect | 242,119 Kb |
Cross-browser vertical centering without Javascript and almost no CSS. | 1,800 Kb |
Dot Ripple CSS | 9,856 Kb |
3D Message Flipper | 2,651 Kb |
Rolldown List | 3,158 Kb |
Holographic Projection | 7,177 Kb |
A Pen by Peter Hrynkow | 2,125 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
12 DAYS OF XMAS | Proto78 | 2,313 Kb |
Welcome | Nakome | 6,076 Kb |
Comparison of Roboto Draft vs Roboto | Jxnblk | 2,880 Kb |
Fullscreen Parallax | Bassta | 3,313 Kb |
Preloader | Rikki_Sixx | 2,815 Kb |
Transitioning application screens with semantically named classes | Djgrant | 3,697 Kb |
Simple search using AngularJS | Haykou | 1,802 Kb |
JS Beispiel getElementsByClassName 3 | HSZG-Frontend-Kurs | 1,988 Kb |
A Pen by Ash | Littleginger | 2,386 Kb |
CSS Bot Confusion | Jpod | 3,456 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!