mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02:00
LibWeb: Correctly handle serialization of PseudoElements
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.
This commit is contained in:
Notes:
github-actions[bot]
2025-06-24 11:46:10 +00:00
Author: https://github.com/luizgfranca 🔰 Commit: https://github.com/LadybirdBrowser/ladybird/commit/da14e072b74 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5174 Reviewed-by: https://github.com/AtkinsSJ ✅
@@ -0,0 +1,17 @@
|
||||
<!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>
|
||||
Reference in New Issue
Block a user