2010-08-21 10:52:57 -07:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html class="reftest-wait">
|
2012-08-28 22:48:44 -07:00
|
|
|
<head>
|
|
|
|
<script>
|
|
|
|
function doTest() {
|
|
|
|
document.getElementById('t').readOnly='ro';
|
|
|
|
document.documentElement.className='';
|
|
|
|
}
|
|
|
|
document.addEventListener("MozReftestInvalidate", doTest, false);
|
|
|
|
</script>
|
|
|
|
</head>
|
2010-08-21 10:52:57 -07:00
|
|
|
<!-- Test: if textarea is readonly, it is barred from constraint validation
|
|
|
|
and should not be affected by :valid pseudo-class. -->
|
2010-08-24 21:40:31 -07:00
|
|
|
<link rel='stylesheet' type='text/css' href='style.css'>
|
2012-08-28 22:48:44 -07:00
|
|
|
<body>
|
2010-08-24 21:40:31 -07:00
|
|
|
<textarea class='notvalid' id='t'></textarea>
|
2010-08-21 10:52:57 -07:00
|
|
|
</body>
|
|
|
|
</html>
|