- From: Emilio Cobos Álvarez via GitHub <sysbot+gh@w3.org>
- Date: Wed, 26 Feb 2025 11:43:21 +0000
- To: public-texttracks@w3.org
emilio has just created a new issue for https://github.com/w3c/webvtt: == Font styling section doesn't match reality == The spec says: > The [font](https://drafts.csswg.org/css-fonts-4/#propdef-font) shorthand property on the (root) [list of WebVTT Node Objects](https://w3c.github.io/webvtt/#list-of-webvtt-node-objects) must be set to 5vh sans-serif. However browsers don't do that: * Gecko uses 5% of the video element height ([code](https://searchfox.org/mozilla-central/rev/fa11d06fd84c487cb0a135c08af796daa6a56e44/dom/media/webvtt/vtt.sys.mjs#618-624)). * Blink uses 5% of the smaller of video element width or height ([code](https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/html/track/text_track_container.cc;l=129;drc=20799f4c32d950ce93d495f44eec648400f38a19)). * WebKit seems to just use a fixed value based off preferences? ([code](https://searchfox.org/wubkat/rev/8bb1183b52ad26de532aed279fbdb9bb8e2e8471/Source/WebCore/html/shadow/MediaControlTextTrackContainerElement.cpp#252-257)). It seems per #489 the idea is that these _are_ relative to the video size? Please view or discuss this issue at https://github.com/w3c/webvtt/issues/529 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 26 February 2025 11:43:22 UTC