[Webkit-unassigned] [Bug 148879] New: SVGColor css custom text format is different from the CSS color custom text format
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Sep 4 20:23:00 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=148879
Bug ID: 148879
Summary: SVGColor css custom text format is different from the
CSS color custom text format
Classification: Unclassified
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: CSS
Assignee: webkit-unassigned at lists.webkit.org
Reporter: sabouhallawa at apple.com
Created attachment 260669
--> https://bugs.webkit.org/attachment.cgi?id=260669&action=review
test case
Open the attached test case.
Result: The css custom text format of the <div> tag is different from the css custom text format of the SVG <rect> tag.
Expected: Colors should always have the same format.
Notes: The problem is Color::serialized() function uses the hex format if the color is opaque. This function is used by SVGColor::customCSSText(). The CSS color itself does not use this function, but instead CSSPrimitiveValue::formatNumberForCustomCSSText() uses different format and code for the cases CSS_RGBCOLOR and CSS_PARSER_HEXCOLOR. This code seems to be the correct format for colors and it used by non SVG colors.
Also in the header file Color.h, this comment is there
// Returns the color serialized according to HTML5
// - http://www.whatwg.org/specs/web-apps/current-work/#serialization-of-a-color
WEBCORE_EXPORT String serialized() const;
The above link is broken and I could not find CSS specs for serialization of a color.
--
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/20150905/dd115662/attachment.html>
More information about the webkit-unassigned
mailing list