nsDOMCSSDeclaration::SetProperty should check for the "important" string in a case-insensitive way.
Categories
(Core :: DOM: CSS Object Model, enhancement, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox67 | --- | fixed |
People
(Reporter: emilio, Assigned: hrdktg, Mentored)
Details
(Keywords: good-first-bug, Whiteboard: [lang=c++][wptsync upstream])
Attachments
(1 file, 1 obsolete file)
i.e., this should work:
document.body.style.setProperty("background-color", "red", "ImPoRtAnT");
This is a one-line change, and needs a test (if there is none already). Looks like a good first bug to me :)
Assignee | ||
Comment 1•6 years ago
|
||
Hey Emilio,
I found the change that needs to be done by looking up the docs.
I hope this is what needs to be done>>
} else if (aPriority.LowerCaseEqualsLiteral("important")) {
in declaration of nsDOMCSSDeclaration::SetProperty(...)
If that is fine, can you point me to a reference on writing test case for this particular case.
Reporter | ||
Comment 2•6 years ago
|
||
It needs to be LowerCaseEqualsASCII, but yeah, that's it! Ideally some pre-existing WPT test would start passing with this change, but apparently there is none, so we could add a test to:
Let me know if you need more help, thanks for looking into this!
Assignee | ||
Comment 3•6 years ago
|
||
Assignee | ||
Comment 4•6 years ago
|
||
Comment 6•6 years ago
|
||
bugherder |
Updated•6 years ago
|
Updated•6 years ago
|
Description
•