Skip to content

[TASK] Implement Declaration::getArrayRepresentation()#1564

Merged
JakeQZ merged 1 commit intomainfrom
task/array-rep/declaration
Apr 11, 2026
Merged

[TASK] Implement Declaration::getArrayRepresentation()#1564
JakeQZ merged 1 commit intomainfrom
task/array-rep/declaration

Conversation

@oliverklee
Copy link
Copy Markdown
Collaborator

Part of #1440.

@oliverklee oliverklee self-assigned this Apr 11, 2026
@oliverklee oliverklee added testing PRs/issues adding additional tests only, or primarily testing-focused developer-specific Issues that only affect maintainers, contributors, and people submitting PRs labels Apr 11, 2026
@coveralls
Copy link
Copy Markdown

Coverage Status

coverage: 72.927% (+0.2%) from 72.752% — task/array-rep/declaration into main

@oliverklee oliverklee requested a review from JakeQZ April 11, 2026 11:31
Comment on lines +233 to +237
'propertyName' => $this->propertyName,
// We're using the term "property value" here to match the wording used in the specs:
// https://www.w3.org/TR/CSS22/syndata.html#declaration
'propertyValue' => $this->value,
'important' => $this->isImportant,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I take all the Git Blame for this possible slight misnomer in the class. I lifted the terminology from MDN which currently still refers to the CSSOM properties for a 'CSS Declaration' as "property name" and "value". Though it does refer to isImportant as "important flag".

I think we are close enough to the mark to avoid confusion, and the official nomenclature may change in future W3C revisions anyway.

@JakeQZ JakeQZ merged commit d86b160 into main Apr 11, 2026
24 checks passed
@JakeQZ JakeQZ deleted the task/array-rep/declaration branch April 11, 2026 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

developer-specific Issues that only affect maintainers, contributors, and people submitting PRs testing PRs/issues adding additional tests only, or primarily testing-focused

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants