mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 09:45:06 +02: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:
committed by
Andreas Kling
parent
b9df8deba2
commit
84193f2746
Notes:
sideshowbarker
2024-07-17 06:28:38 +09:00
Author: https://github.com/tcl3 Commit: https://github.com/SerenityOS/serenity/commit/84193f2746 Pull-request: https://github.com/SerenityOS/serenity/pull/24150
@@ -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}`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user