mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01: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
|
|
@ -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…
Reference in New Issue
Block a user