1/* 2 * Copyright 2015 The Emscripten Authors. All rights reserved. 3 * Emscripten is available under two separate licenses, the MIT license and the 4 * University of Illinois/NCSA Open Source License. Both these licenses can be 5 * found in the LICENSE file. 6 */ 7 8#include <math.h> 9#include <emscripten/html5.h> 10 11int main() { 12 int result = 0; 13 double w, h; 14 emscripten_get_element_css_size("#canvas", &w, &h); 15 if (isnan(w) || isnan(h)) { 16 result = 1; 17 } 18 REPORT_RESULT(result); 19 return 0; 20} 21 22