layout/reftests/text/wordwrap-04.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/text/wordwrap-04.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,18 @@
     1.4 +<!DOCTYPE html>
     1.5 +<!-- Test setting word-wrap: break-word dynamically -->
     1.6 +<html>
     1.7 + <head>
     1.8 +  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
     1.9 +  <title>Test Wordwrap</title>
    1.10 +  <script type="text/javascript">
    1.11 +function SwapStyle()
    1.12 +{
    1.13 +  par = document.getElementById("pp");
    1.14 +  par.style.wordWrap = "break-word";
    1.15 +}
    1.16 +  </script>
    1.17 + </head>
    1.18 + <body onload="SwapStyle()">
    1.19 +  <p id="pp" style="width: 100px; word-wrap: normal;">It's lipsmackinthirstquenchinacetastinmotivatingoodbuzzincooltalkinhighwalkinfastlivinevergivincoolfizzin Firefox!</p>
    1.20 + </body>
    1.21 +</html>

mercurial