Bug 260425

Summary: Unexpected behavior with the `quotes` property when custom properties are applied to pseudo-elements
Product: WebKit Reporter: Yuhei Yasuda <yuhei.yasuda1003>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: ahmad.saleem792, koivisto, ntim, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: BrowserCompat, InRadar
Version: Safari 16   
Hardware: Mac (Apple Silicon)   
OS: macOS 13   
Attachments:
Description Flags
For none, the open quote is hidden and the close quote is ”; for string, the open quote has a custom value applied but the close quote is ” none

Description Yuhei Yasuda 2023-08-19 05:21:00 PDT
Created attachment 467339 [details]
For none, the open quote is hidden and the close quote is ”; for string, the open quote has a custom value applied but the close quote is ”

When using either `none` or a string for the `quotes` property, and if custom properties are applied to pseudo-elements, the result is the same as if `auto` was specified for the `quotes` property.

span {
  quotes: "«" "»";
}

span::before {
  content: open-quote;
}

span::after {
  --x: ; /* this line reverts the quote */
  content: close-quote;
}

Demo: https://codepen.io/yuheiy/pen/oNJNQzw
Comment 1 Radar WebKit Bug Importer 2023-08-26 05:21:14 PDT
<rdar://problem/114494164>
Comment 2 Tim Nguyen (:ntim) 2024-07-26 17:31:53 PDT

*** This bug has been marked as a duplicate of bug 277154 ***
Comment 3 Tim Nguyen (:ntim) 2024-07-26 17:32:16 PDT
Bug 277154 fixes this testcase