[Webkit-unassigned] [Bug 57505] getComputedStyle fails for 'first-line' pseudo-element
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Feb 27 05:22:46 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=57505
felix <felix8a at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
--- Comment #6 from felix <felix8a at gmail.com> 2012-02-27 05:22:47 PST ---
Sorry for the typos in the a.html attachment.
Here's a better example. This does what I expect in firefox, but not in safari or chrome:
<!doctype html>
<html>
<body>
<style>
#a { color: red; }
#b:first-letter { color: red; }
</style>
<p id="a">hello</p>
<p id="b">world</p>
<script>
var a = document.getElementById('a');
var b = document.getElementById('b');
alert(window.getComputedStyle(a, ':first-letter').color + ':' +
window.getComputedStyle(b, ':first-letter').color);
</script>
</body>
</html>
In firefox 11.0 it alerts 'rgb(255, 0, 0):rgb(255, 0, 0)'
In safari 5.1.3 it alerts ':rgb(255, 0, 0)'
--
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