mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00: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:
parent
b85a8a23a7
commit
da14e072b7
Notes:
github-actions[bot]
2025-06-24 11:46:10 +00:00
Author: https://github.com/luizgfranca 🔰
Commit: da14e072b7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5174
Reviewed-by: https://github.com/AtkinsSJ ✅
3 changed files with 23 additions and 4 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue