[Webkit-unassigned] [Bug 141262] Web Inspector: if a known CSS property has an unsupported value, only strikethrough the value

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 3 18:49:30 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=141262

--- Comment #5 from drousso at apple.com ---
Comment on attachment 254219
  --> https://bugs.webkit.org/attachment.cgi?id=254219
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=254219&action=review

>> Source/WebInspectorUI/UserInterface/Models/CSSCompletions.js:279
>> +    nameMatchesValidPropertyExactly(name)
> 
> Do we need to do anything special for properties that can have a "-webkit-" prefix or not? Like transform can, and some others.

I tested this with a few different "-webkit-" prefixed properties and it worked correctly without any issues, so no.  As far as I understand, the property name includes "-webkit-" so it will match with that in mind.  If I had used canonicalName, then this would be a problem as it strips prefixes.

>> Source/WebInspectorUI/UserInterface/Views/CSSStyleDeclarationTextEditor.js:542
>> +            this._codeMirror.markText(start, end, {className: "invalid"});
> 
> Will this marker get cleared when edits are made to make the value valid?

Yes the marker is redrawn every time the editor is updated, so if the property is no longer invalid it will not draw.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150604/38ca4ab6/attachment.html>


More information about the webkit-unassigned mailing list