OLD | NEW |
(Empty) | |
| 1 Test for issue 258200:CSS Media Queries are basing "rem" unit on style data. |
| 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 |
| 5 |
| 6 PASS window.getComputedStyle(document.body).backgroundColor is "rgb(0, 128, 0)" |
| 7 PASS window.getComputedStyle(document.body).backgroundColor is "rgb(0, 128, 0)" |
| 8 PASS successfullyParsed is true |
| 9 |
| 10 TEST COMPLETE |
| 11 Resize the window to be larger than #1, but smaller than #2. If the screen turns
red, the browser is basing 'rem' units in MQs on style data, which is a spec vi
olation. (It should be equal to the initial font size, same as the 'em' unit, to
avoid circularity issues.) |
| 12 #1: 50rem (based on style data) |
| 13 #2: 50 * 16px (assumed to be the initial font size) |
OLD | NEW |