File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
mathml/relations/css-styling Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 21
21
document . getElementById ( "m6" ) . removeAttribute ( "displaystyle" ) ;
22
22
document . documentElement . removeAttribute ( "class" ) ;
23
23
}
24
- window . addEventListener ( "load" , doTest ) ;
24
+ window . addEventListener ( "load" , function ( ) {
25
+ // Delay the check to workaround WebKit's bug https://webkit.org/b/174030.
26
+ requestAnimationFrame ( ( ) => { document . fonts . ready . then ( doTest ) ; } ) ;
27
+ } ) ;
25
28
</ script >
26
29
< link rel ="stylesheet " href ="/fonts/ahem.css ">
27
30
< style >
Original file line number Diff line number Diff line change 18
18
setAttribute ( 'mathbackground' , 'red' ) ;
19
19
document . documentElement . removeAttribute ( "class" ) ;
20
20
}
21
- window . addEventListener ( "load" , doTest ) ;
21
+ window . addEventListener ( "load" , function ( ) {
22
+ // Delay the check to workaround WebKit's bug https://webkit.org/b/174030.
23
+ requestAnimationFrame ( ( ) => { document . fonts . ready . then ( doTest ) ; } ) ;
24
+ } ) ;
22
25
</ script >
23
26
< link rel ="stylesheet " href ="/fonts/ahem.css ">
24
27
< style >
You can’t perform that action at this time.
0 commit comments