mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb: Align StyleSheet title getter with the specification
The CSSOM specification says that StyleSheet.title should return null if the title field is empty.
This commit is contained in:
parent
b9df8deba2
commit
84193f2746
Notes:
sideshowbarker
2024-07-17 06:28:38 +09:00
Author: https://github.com/tcl3
Commit: 84193f2746
Pull-request: https://github.com/SerenityOS/serenity/pull/24150
6 changed files with 22 additions and 13 deletions
|
@ -6,7 +6,7 @@
|
|||
const sheet = new CSSStyleSheet();
|
||||
println(`Empty sheet ownerNode: ${sheet.ownerNode}`);
|
||||
println(`Empty sheet ownerRule: ${sheet.ownerRule}`);
|
||||
println(`Empty sheet title is empty string: ${sheet.title === ""}`);
|
||||
println(`Empty sheet title: ${sheet.title}`);
|
||||
println(`Empty sheet cssRules is empty: ${sheet.cssRules.length === 0}`);
|
||||
println(`Empty sheet is disabled by default: ${sheet.disabled}`);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue