mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-28 05:07:35 +00:00
LibWeb/CSS: Specify behavior for OOB CSSStyleDeclaration::item()
Corresponds to 56ed462ccd
We already did the right thing.
This commit is contained in:
parent
6602fa5d15
commit
24f4356c3f
Notes:
github-actions[bot]
2025-08-07 12:31:40 +00:00
Author: https://github.com/AtkinsSJ
Commit: 24f4356c3f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5759
Reviewed-by: https://github.com/gmta ✅
2 changed files with 2 additions and 0 deletions
|
@ -33,6 +33,7 @@ size_t CSSDescriptors::length() const
|
|||
String CSSDescriptors::item(size_t index) const
|
||||
{
|
||||
// The item(index) method must return the property name of the CSS declaration at position index.
|
||||
// If there is no indexth object in the collection, then the method must return the empty string.
|
||||
if (index >= length())
|
||||
return {};
|
||||
|
||||
|
|
|
@ -137,6 +137,7 @@ size_t CSSStyleProperties::length() const
|
|||
String CSSStyleProperties::item(size_t index) const
|
||||
{
|
||||
// The item(index) method must return the property name of the CSS declaration at position index.
|
||||
// If there is no indexth object in the collection, then the method must return the empty string.
|
||||
// FIXME: Include custom properties.
|
||||
|
||||
if (index >= length())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue