123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <!DOCTYPE html>
- <html>
- <head>
- <style type="text/css" media="screen">
- .box {
- display: inline-block;
- height: 120px;
- width: 300px;
- margin: 10px;
- border: 1px solid black;
- background-repeat: no-repeat;
- font-size: 12pt;
- }
-
- .em-units > .box {
- background-image: linear-gradient(to right, yellow, yellow 5em, green 5em);
- }
-
- .indicator {
- background-color: black;
- height: 20px;
- }
- </style>
- <script type="text/javascript" src="resources/text-based-repaint.js"></script>
- <script type="text/javascript">
- function repaintTest()
- {
- document.getElementById("box4").style.fontSize = "36pt";
- }
- </script>
- </script>
- </head>
- <body onload="runRepaintAndPixelTest();">
- <div class="em-units">
- <div id="box3" class="box"><div class="indicator" style="width: 5em;"></div></div>
- <div id="box4" class="box"><div class="indicator" style="width: 5em;"></div></div>
- </div>
- </body>
- </html>
|