WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
HTML file demonstrating the bug
getcomputedstyle.html (text/html), 681 bytes, created by
Marc Hoyois
on 2011-08-29 15:18:55 PDT
(
hide
)
Description:
HTML file demonstrating the bug
Filename:
MIME Type:
Creator:
Marc Hoyois
Created:
2011-08-29 15:18:55 PDT
Size:
681 bytes
patch
obsolete
><!DOCTYPE html> ><html> ><body> ><script> > var video = document.createElement("video"); > video.controls = true; > document.body.appendChild(video); > var input = document.createElement("input"); > input.type = "number"; > document.body.appendChild(input); > var style1 = getComputedStyle(video, "::-webkit-media-controls-play-button"); > var style2 = getComputedStyle(video, "::-webkit-inner-spin-button"); > console.log("Style of play button: " + style1.cssText); > console.log("Style of spin button: " + style2.cssText); > alert("width of play button: " + style1.getPropertyValue("width") + "\nwidth of spin button: " + style2.getPropertyValue("width") + "\netc."); ></script> ></body> ></html>
<!DOCTYPE html> <html> <body> <script> var video = document.createElement("video"); video.controls = true; document.body.appendChild(video); var input = document.createElement("input"); input.type = "number"; document.body.appendChild(input); var style1 = getComputedStyle(video, "::-webkit-media-controls-play-button"); var style2 = getComputedStyle(video, "::-webkit-inner-spin-button"); console.log("Style of play button: " + style1.cssText); console.log("Style of spin button: " + style2.cssText); alert("width of play button: " + style1.getPropertyValue("width") + "\nwidth of spin button: " + style2.getPropertyValue("width") + "\netc."); </script> </body> </html>
View Attachment As Raw
Actions:
View
Attachments on
bug 67157
: 105529