Closed
Bug 1221877
Opened 9 years ago
Closed 9 years ago
Incorrect Fallback for the CSS text-shadow Property with an Invalid Color Value
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1199610
People
(Reporter: bugzilla-2, Unassigned)
Details
Attachments
(1 file)
689 bytes,
application/xhtml+xml
|
Details |
User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0
Build ID: 20151029151421
Steps to reproduce:
Specify the CSS |text-shadow| property with an invalid color value.
Actual results:
Text is rendered with a text shadow as if the |currentcolor| keyword had been specified in the |text-shadow| property declaration.
Expected results:
No text shadow should have been rendered because the color value is invalid; the entire property declaration should have been invalidated. (If there's a valid fallback |text-shadow| declaration, that should be used instead.)
This situation is handled correctly in Google Chrome 46, Microsoft Edge 20, and Microsoft Internet Explorer 11. (I don't have access to Safari.)
This bug means that one can't use CSS4 Color HSL color values utilizing explicit degree (|deg|) units with an equivalent fallback declaration unless the text color is the same as the intended text shadow color.
Updated•9 years ago
|
Component: Untriaged → Graphics: Text
Product: Firefox → Core
Updated•9 years ago
|
OS: Unspecified → Windows
Comment 1•9 years ago
|
||
A CSS property being rendered somehow while the spec mandates to drop it sounds more like a DOM/style system issue than a low level graphics bug (not sure which component is best for this, so moving to DOM speculatively).
It also reproduces on Linux.
Status: UNCONFIRMED → NEW
Component: Graphics: Text → DOM
Ever confirmed: true
OS: Windows → All
Component: DOM → CSS Parsing and Computation
Comment 2•9 years ago
|
||
Fixed in bug 1199610; will be making its way to release as scheduled.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
![]() |
||
Comment 3•9 years ago
|
||
> Component: DOM → CSS Parsing and Computation
Yep. For future reference, a CSS property not being dropped when invalid has nothing to do with the DOM. ;)
You need to log in
before you can comment on or make changes to this bug.
Description
•