mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
2fe672e79c
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>
|