Bug 240771 - word-spacing does not work on optgroup
Summary: word-spacing does not work on optgroup
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: Safari 15
Hardware: All All
: P2 Critical
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-05-22 00:38 PDT by Chijin
Modified: 2023-05-15 00:59 PDT (History)
4 users (show)

See Also:


Attachments
webkit screenshot (90.47 KB, image/png)
2022-05-22 00:38 PDT, Chijin
no flags Details
firefox screenshot (84.97 KB, image/png)
2022-05-22 00:38 PDT, Chijin
no flags Details
chrome screenshot (196.66 KB, image/png)
2022-05-22 00:38 PDT, Chijin
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chijin 2022-05-22 00:38:10 PDT
Created attachment 459646 [details]
webkit screenshot

reprodiciable example: https://codepen.io/chijinz/pen/wvyqWRj

code:
```
<head>
<style>
</style>
<script>
function jsfuzzer() {
document.getElementById("htmlvar00004").style["word-spacing"] = "53pt"
}
</script>
</head>
<body onload=jsfuzzer()>
<select multiple>
<optgroup id="htmlvar00004">
<option >abc abc abc</option>
</optgroup>
</select>
</body>
</html>

```

version: all webkit products (including Safari)

description:

The "word-spacing" should make content of the optgroup element more space between words. But it does not work. Chrome and Firefox work fine with it.
Comment 1 Chijin 2022-05-22 00:38:36 PDT
Created attachment 459647 [details]
firefox screenshot
Comment 2 Chijin 2022-05-22 00:38:55 PDT
Created attachment 459648 [details]
chrome screenshot
Comment 3 Radar WebKit Bug Importer 2022-05-29 00:39:13 PDT
<rdar://problem/94083757>