mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-27 03:10:01 +00:00
Previusly the implementation only was serializing PseudoElements if they were the last element in the CompoundSelector. This caused bugs on Javascript code that referenced their selectorText, where it would be wrong.
17 lines
338 B
HTML
17 lines
338 B
HTML
<!DOCTYPE html>
|
|
<style>
|
|
::-webkit-scrollbar-thumb {
|
|
background: #28bea5;
|
|
}
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: #28bea5;
|
|
}
|
|
</style>
|
|
<script src="../include.js"></script>
|
|
<script>
|
|
test(() => {
|
|
for (let rule of document.styleSheets[0].cssRules) {
|
|
println(rule.selectorText);
|
|
}
|
|
});
|
|
</script>
|