Bug 268269 - Explore the usage of 'text-track.css' and 'mediaControls' as UA Stylesheet rule
Summary: Explore the usage of 'text-track.css' and 'mediaControls' as UA Stylesheet rule
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on: 268296
Blocks:
  Show dependency treegraph
 
Reported: 2024-01-28 20:14 PST by Ahmad Saleem
Modified: 2024-02-20 09:54 PST (History)
7 users (show)

See Also:


Attachments
Just a snapshot - Reference Image (281.68 KB, image/png)
2024-01-28 20:21 PST, Ahmad Saleem
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ahmad Saleem 2024-01-28 20:14:05 PST
Hi Team,

I started noticing that for media controls, we have three UA stylesheets:

1) mediaControls.css
2) captions.css
3) text-track.css

__

I'll start with simple one - 'captions.css':

Only these exist in the file (which is not in either of others):

video::cue(:future) > *

video::cue(*) {

____

Then in text-track.css:

We have following to cover 'captions.css' one:

::cue(:future) 

and have two '::-webkit-media-text-track-display' (in other files as well but also twice in same and conflict with each other -> e.g., white-space: pre-wrap; and white-space: pre-line;

etc.

__

and mediaControls.css is the biggest.

____

I think we can get rid of `captions.css` while we can trim and clean-up `text-track.css` while make `mediaControls.css` as defacto standard.

Just raising to get input and also if someone want to tackle it.

Thanks!
Comment 1 Ahmad Saleem 2024-01-28 20:21:07 PST
Created attachment 469587 [details]
Just a snapshot - Reference Image

Diff for video::-webkit-media-text-track-container between:

> mediaControls.css
> text-tracks.css
Comment 2 Radar WebKit Bug Importer 2024-02-04 20:15:19 PST
<rdar://problem/122289181>
Comment 3 Ahmad Saleem 2024-02-20 09:54:17 PST
`captions.css` is gone since it was accidentally added.