Bug Tracker

Ticket #3732: index5.html

File index5.html, 1.1 KB (added by sanaell, 14 years ago)

test-case very simple

Line 
1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
3<head>
4    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
5    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
6    <title>test</title>
7                <style type="text/css">
8        </style>
9    <script src="jquery/jquery-1.2.6.pack.js" type="text/javascript"></script>
10<script>
11$(document).ready(function() {
12//hack css jquery for ie
13        $.fn.extend({ css2: function(key, value) { var key = key.replace(/\-(\w)/g, function(all, letter){ return letter.toUpperCase(); }); return this.css( key, value); } });
14                $('#id2').after('normal css": '+$('#id2').css('background-position')+'<br />camelcase: '+$('#id2').css('backgroundPosition')+"<br />fixed: "+$('#id2').css2('background-position'));
15                                                   });
16</script>
17
18</head>
19<body>
20background-position vs backgroundPosition<br />
21<div id="id2" style="background-position:50px 50px">my position is: <div>
22</body>
23</html>