mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-30 05:35:31 +00:00
21298d6c2c
The basic idea is to only match against id selectors which might matter by keeping track of them in a hashtable instead of a flat list. We still need to use a flat list for possibly-negated id selectors, unfortunately.
13 lines
270 B
HTML
13 lines
270 B
HTML
<!-- This test needs to be in quirks mode -->
|
|
<html>
|
|
<head>
|
|
<style>
|
|
body { color: red; }
|
|
body#foo { color: green; }
|
|
</style>
|
|
</head>
|
|
<body onload="document.body.offsetWidth; document.body.id = 'FOO'">
|
|
This should be green
|
|
</body>
|
|
</html>
|