Bug 240771

Summary: word-spacing does not work on optgroup
Product: WebKit Reporter: Chijin <tlock.chijin>
Component: FormsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Critical CC: cdumez, karlcow, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: Safari 15   
Hardware: All   
OS: All   
See Also: https://bugs.webkit.org/show_bug.cgi?id=8351
Attachments:
Description Flags
webkit screenshot
none
firefox screenshot
none
chrome screenshot none

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>