mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibWeb/CSS: Support inherit
custom properties on :root
Make sure we have a parent element before trying to look at it! I've also pulled out a stub function for getting a custom property's initial value, so that there's only one place to change once we support `@property` more.
This commit is contained in:
parent
edca2ab666
commit
b3abbeab89
Notes:
github-actions[bot]
2025-07-15 08:37:17 +00:00
Author: https://github.com/AtkinsSJ
Commit: b3abbeab89
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5438
Reviewed-by: https://github.com/gmta ✅
3 changed files with 28 additions and 8 deletions
|
@ -0,0 +1 @@
|
|||
PASS! (Didn't crash)
|
|
@ -0,0 +1,12 @@
|
|||
<!DOCTYPE html>
|
||||
<style>
|
||||
:root {
|
||||
--example: unset;
|
||||
}
|
||||
</style>
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
println("PASS! (Didn't crash)");
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue