| Summary: | Serialize the path() function with double quotes | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ahmad Saleem <ahmad.saleem792> |
| Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED INVALID | ||
| Severity: | Normal | CC: | ntim, simon.fraser |
| Priority: | P2 | Keywords: | BrowserCompat, WPTImpact |
| Version: | Safari Technology Preview | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
|
Description
Ahmad Saleem
2023-10-03 18:10:55 PDT
This compiles but don't progress test:
String CSSPathValue::customCSSText() const
{
String pathString;
buildStringFromByteStream(m_pathData, pathString, UnalteredParsing);
StringBuilder result;
if (m_windRule == WindRule::EvenOdd)
result.append("path(evenodd, "_s);
else
result.append("path(\""_s);
serializeString(pathString, result);
result.append("\")"_s);
return result.toString();
}
at least while running few in Minibrowsers.
Latest in Chrome / Blink:
String CSSPathValue::CustomCSSText() const {
StringBuilder result;
result.Append("path(");
if (style_path_->GetWindRule() == RULE_EVENODD) {
result.Append("evenodd, ");
}
result.Append("\"");
result.Append(BuildStringFromByteStream(ByteStream(), serialization_format_));
result.Append("\")");
return result.ReleaseString();
}
|