Bug 260425 - Unexpected behavior with the `quotes` property when custom properties are applied to pseudo-elements
Summary: Unexpected behavior with the `quotes` property when custom properties are app...
Status: RESOLVED DUPLICATE of bug 277154
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari 16
Hardware: Mac (Apple Silicon) macOS 13
: P2 Normal
Assignee: Nobody
URL:
Keywords: BrowserCompat, InRadar
Depends on:
Blocks:
 
Reported: 2023-08-19 05:21 PDT by Yuhei Yasuda
Modified: 2024-07-26 17:32 PDT (History)
6 users (show)

See Also:


Attachments
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 ” (5.49 KB, image/png)
2023-08-19 05:21 PDT, Yuhei Yasuda
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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