From c22e910235ebe3c03f89563273c13d616548b6e2 Mon Sep 17 00:00:00 2001 From: hannajones Date: Wed, 21 May 2025 03:51:44 +0000 Subject: [PATCH] Bug 1606785 - Format dom CSS files with Prettier r=emilio Differential Revision: https://phabricator.services.mozilla.com/D249177 --- dom/base/test/file_bug498897.css | 4 +- dom/crypto/test/test_WebCrypto.css | 93 ++++++++------- .../pointerevents/wpt/pointerevent_styles.css | 110 +++++++++--------- dom/security/test/sri/file_bug_1271796.css | 4 +- dom/tests/mochitest/general/cssB.css | 4 +- dom/tests/mochitest/general/emptyCssFile2.css | 2 +- .../general/importsSameAndCrossOrigin.css | 5 +- dom/tests/mochitest/general/test_offsets.css | 10 +- .../mochitest/webcomponents/inert_style.css | 1 - dom/xml/resources/XMLPrettyPrint.css | 4 +- dom/xml/test/old/books/classic.css | 27 ++--- dom/xml/test/old/books/common.css | 4 +- dom/xml/test/old/books/list.css | 14 +-- dom/xml/test/old/xlink/link.css | 1 - dom/xml/test/old/xmlbase/xmlbase.css | 6 +- 15 files changed, 146 insertions(+), 143 deletions(-) diff --git a/dom/base/test/file_bug498897.css b/dom/base/test/file_bug498897.css index 84beffdefc22..35fe41025124 100644 --- a/dom/base/test/file_bug498897.css +++ b/dom/base/test/file_bug498897.css @@ -1 +1,3 @@ -body { background: orange; } +body { + background: orange; +} diff --git a/dom/crypto/test/test_WebCrypto.css b/dom/crypto/test/test_WebCrypto.css index 3b8b32663815..67ff9ab3e170 100644 --- a/dom/crypto/test/test_WebCrypto.css +++ b/dom/crypto/test/test_WebCrypto.css @@ -3,82 +3,93 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ body { - font-family: Helvetica Neue, Helvetica, Trebuchet MS, Sans-serif; - font-size: 12pt; - text-align: center; + font-family: + Helvetica Neue, + Helvetica, + Trebuchet MS, + Sans-serif; + font-size: 12pt; + text-align: center; } a { - color: #FF9500; - text-decoration: none; + color: #ff9500; + text-decoration: none; } a:hover { - text-decoration: underline; + text-decoration: underline; } #content { - width: 50em; - margin-left: auto; - margin-right: auto; - text-align: left; + width: 50em; + margin-left: auto; + margin-right: auto; + text-align: left; } #head { - font-family: Helvetica Neue, Helvetica, Trebuchet MS, Sans-serif; - font-size: 300%; - font-weight: lighter; - padding: .2ex; - padding-bottom: 0; - margin-bottom: .5ex; - border-bottom: 10px solid #FF9500; + font-family: + Helvetica Neue, + Helvetica, + Trebuchet MS, + Sans-serif; + font-size: 300%; + font-weight: lighter; + padding: 0.2ex; + padding-bottom: 0; + margin-bottom: 0.5ex; + border-bottom: 10px solid #ff9500; } #head b { - font-weight: bold; - color: #FF9500; + font-weight: bold; + color: #ff9500; } div.content { - font-family: Helvetica Neue, Helvetica, Trebuchet MS, Sans-serif; - color: #000; - margin: 2ex; + font-family: + Helvetica Neue, + Helvetica, + Trebuchet MS, + Sans-serif; + color: #000; + margin: 2ex; } #foot { - border-bottom: 1ex solid #FF9500; - margin-top: 2ex; + border-bottom: 1ex solid #ff9500; + margin-top: 2ex; } /*------------------------------------------*/ #start { - background: #FF9500; - color: #fff; - text-align: center; - font-weight: bold; - padding: 1em 0 1em 0; - width: 50em; - cursor: pointer; + background: #ff9500; + color: #fff; + text-align: center; + font-weight: bold; + padding: 1em 0 1em 0; + width: 50em; + cursor: pointer; } - #results { - text-align: left; - width: 48em; - border: 1px solid black; + text-align: left; + width: 48em; + border: 1px solid black; } .pass { - font-weight: bold; - color: #00539F; + font-weight: bold; + color: #00539f; } .fail { - font-weight: bold; - color: #FF9500; + font-weight: bold; + color: #ff9500; } .pending { - font-weight: bold; - color: #666; + font-weight: bold; + color: #666; } diff --git a/dom/events/test/pointerevents/wpt/pointerevent_styles.css b/dom/events/test/pointerevents/wpt/pointerevent_styles.css index 026bbe7e9b72..aeee25640444 100644 --- a/dom/events/test/pointerevents/wpt/pointerevent_styles.css +++ b/dom/events/test/pointerevents/wpt/pointerevent_styles.css @@ -1,49 +1,49 @@ #innerFrame { -position: absolute; -top: 300px; -left: 200px; -height: 100px; -width: 100px; + position: absolute; + top: 300px; + left: 200px; + height: 100px; + width: 100px; } .spacer { -height: 100px; + height: 100px; } #square1 { -top: 330px; -left: 150px; -background: black; + top: 330px; + left: 150px; + background: black; } #square2 { -top: 50px; -left: 30px; -visibility: hidden; -background: red; + top: 50px; + left: 30px; + visibility: hidden; + background: red; } .square { -height: 20px; -width: 20px; -position: absolute; -padding: 0; + height: 20px; + width: 20px; + position: absolute; + padding: 0; } #target0 { -background: black; -color: white; -white-space: nowrap; -overflow-y: auto; -overflow-x: auto; + background: black; + color: white; + white-space: nowrap; + overflow-y: auto; + overflow-x: auto; } #target1 { -background: purple; -color: white; -white-space: nowrap; -overflow-y: auto; -overflow-x: auto; + background: purple; + color: white; + white-space: nowrap; + overflow-y: auto; + overflow-x: auto; } #scrollTarget { @@ -51,62 +51,62 @@ overflow-x: auto; } .touchActionNone { -touch-action: none; + touch-action: none; } #innerframe { -width: 90%; -margin: 10px; -margin-left: 10%; -height: 200px; + width: 90%; + margin: 10px; + margin-left: 10%; + height: 200px; } .scroller { -width: 700px; -height: 430px; -margin: 20px; -overflow: auto; -background: black; + width: 700px; + height: 430px; + margin: 20px; + overflow: auto; + background: black; } .scroller > div { -height: 1000px; -width: 1000px; -color: white; + height: 1000px; + width: 1000px; + color: white; } .scroller > div div { -height: 100%; -width: 100%; -color: white; + height: 100%; + width: 100%; + color: white; } div { -margin: 0; -padding: 2em; + margin: 0; + padding: 2em; } #complete-notice { -background: #afa; -border: 1px solid #0a0; -display: none; + background: #afa; + border: 1px solid #0a0; + display: none; } #pointertype-log { -font-weight: bold; + font-weight: bold; } #event-log { -font-weight: bold; + font-weight: bold; } #listener { -background: orange; -border: 1px solid orange; -position: absolute; -top: -100px; + background: orange; + border: 1px solid orange; + position: absolute; + top: -100px; } body.scrollable { -min-height: 5000px; + min-height: 5000px; } diff --git a/dom/security/test/sri/file_bug_1271796.css b/dom/security/test/sri/file_bug_1271796.css index c0928f2cf01f..a8d0c99cc517 100644 --- a/dom/security/test/sri/file_bug_1271796.css +++ b/dom/security/test/sri/file_bug_1271796.css @@ -1,2 +1,4 @@ /*! Simple test for bug 1271796 */ -p::before { content: "\2014"; } +p::before { + content: "\2014"; +} diff --git a/dom/tests/mochitest/general/cssB.css b/dom/tests/mochitest/general/cssB.css index 8d44ebd00f26..c3f9a361a828 100644 --- a/dom/tests/mochitest/general/cssB.css +++ b/dom/tests/mochitest/general/cssB.css @@ -1,2 +1,2 @@ -@import 'cssC.css'; -@import url('http://example.org/tests/dom/tests/mochitest/general/cssC.css'); +@import "cssC.css"; +@import url("http://example.org/tests/dom/tests/mochitest/general/cssC.css"); diff --git a/dom/tests/mochitest/general/emptyCssFile2.css b/dom/tests/mochitest/general/emptyCssFile2.css index 64f97ae68746..60abb84fd78e 100644 --- a/dom/tests/mochitest/general/emptyCssFile2.css +++ b/dom/tests/mochitest/general/emptyCssFile2.css @@ -1 +1 @@ -@import url('http://example.org/tests/dom/tests/mochitest/general/cross.css'); \ No newline at end of file +@import url("http://example.org/tests/dom/tests/mochitest/general/cross.css"); diff --git a/dom/tests/mochitest/general/importsSameAndCrossOrigin.css b/dom/tests/mochitest/general/importsSameAndCrossOrigin.css index 69e239c063b0..68c6d8535cb1 100644 --- a/dom/tests/mochitest/general/importsSameAndCrossOrigin.css +++ b/dom/tests/mochitest/general/importsSameAndCrossOrigin.css @@ -1,3 +1,2 @@ -@import 'emptyCssFile2.css'; -@import url('http://example.org/tests/dom/tests/mochitest/general/emptyCssFile2.css'); - +@import "emptyCssFile2.css"; +@import url("http://example.org/tests/dom/tests/mochitest/general/emptyCssFile2.css"); diff --git a/dom/tests/mochitest/general/test_offsets.css b/dom/tests/mochitest/general/test_offsets.css index 18231c4d9bd5..877af0be258f 100644 --- a/dom/tests/mochitest/general/test_offsets.css +++ b/dom/tests/mochitest/general/test_offsets.css @@ -1,3 +1,7 @@ - button, vbox, menu, menuitem, menupopup { - box-sizing: content-box; - } +button, +vbox, +menu, +menuitem, +menupopup { + box-sizing: content-box; +} diff --git a/dom/tests/mochitest/webcomponents/inert_style.css b/dom/tests/mochitest/webcomponents/inert_style.css index 3b005ede8c02..c00dc35c3044 100644 --- a/dom/tests/mochitest/webcomponents/inert_style.css +++ b/dom/tests/mochitest/webcomponents/inert_style.css @@ -7,4 +7,3 @@ span { padding-top: 10px; } - diff --git a/dom/xml/resources/XMLPrettyPrint.css b/dom/xml/resources/XMLPrettyPrint.css index 4e2088bd91d0..f2419aadc79c 100644 --- a/dom/xml/resources/XMLPrettyPrint.css +++ b/dom/xml/resources/XMLPrettyPrint.css @@ -37,11 +37,11 @@ } .expandable-opening { - list-style: '+' outside; + list-style: "+" outside; } [open] > .expandable-opening { - list-style-type: '−'; + list-style-type: "−"; } .expandable-opening::marker { diff --git a/dom/xml/test/old/books/classic.css b/dom/xml/test/old/books/classic.css index 1ebc92f6e874..6574e9140947 100644 --- a/dom/xml/test/old/books/classic.css +++ b/dom/xml/test/old/books/classic.css @@ -1,5 +1,3 @@ - - BookSet { display: block; } @@ -15,12 +13,12 @@ Book { } BookCover { - display: inline; - float: left; - margin-right: 10px; - padding: 5px; - width: 100px; - height: 140px; + display: inline; + float: left; + margin-right: 10px; + padding: 5px; + width: 100px; + height: 140px; } Title { @@ -45,24 +43,21 @@ Synopsis { background-color: #ddddff; } - ListPrice { display: block; text-align: right; padding-right: 15px; - text-decoration: line-through; + text-decoration: line-through; } - Price { display: block; - color: rgb(20,100,0); - text-align:right; + color: rgb(20, 100, 0); + text-align: right; padding-right: 15px; font-weight: bold; } - Price:before { content: "Our Price: "; } @@ -72,7 +67,3 @@ ISBN { font-family: monospace; font-size: 8pt; } - - - - diff --git a/dom/xml/test/old/books/common.css b/dom/xml/test/old/books/common.css index 6134e594f581..05b91fd2555b 100644 --- a/dom/xml/test/old/books/common.css +++ b/dom/xml/test/old/books/common.css @@ -15,7 +15,7 @@ SearchTitle { border-bottom: thin solid black; padding-bottom: 6px; margin-bottom: 12px; -} +} SearchTitle:first-line { font-family: Verdana, Sans-Serif; @@ -40,4 +40,4 @@ Label { input { margin-top: 2px; -} \ No newline at end of file +} diff --git a/dom/xml/test/old/books/list.css b/dom/xml/test/old/books/list.css index 3b5d4089159d..e0740dd145c2 100644 --- a/dom/xml/test/old/books/list.css +++ b/dom/xml/test/old/books/list.css @@ -1,4 +1,3 @@ - BookSet { display: block; } @@ -11,7 +10,7 @@ Book { } BookCover { - display: none; + display: none; } Title { @@ -31,23 +30,20 @@ Synopsis { display: none; } - ListPrice { display: none; text-align: right; padding-right: 15px; - text-decoration: line-through; + text-decoration: line-through; } - Price { display: block; - color: rgb(20,100,0); + color: rgb(20, 100, 0); font-weight: bold; - text-align:left; + text-align: left; } - Price:before { content: "Our Price: "; } @@ -57,5 +53,3 @@ ISBN { font-family: monospace; font-size: 8pt; } - - diff --git a/dom/xml/test/old/xlink/link.css b/dom/xml/test/old/xlink/link.css index 19dc52198d77..59d792c58623 100644 --- a/dom/xml/test/old/xlink/link.css +++ b/dom/xml/test/old/xlink/link.css @@ -19,4 +19,3 @@ mylink { color: blue; text-decoration: underline; } - diff --git a/dom/xml/test/old/xmlbase/xmlbase.css b/dom/xml/test/old/xmlbase/xmlbase.css index a100186bbcad..485a802ccffe 100644 --- a/dom/xml/test/old/xmlbase/xmlbase.css +++ b/dom/xml/test/old/xmlbase/xmlbase.css @@ -17,7 +17,9 @@ xlink|link { padding-left: +5px; } -sect1,sect2,sect3 { +sect1, +sect2, +sect3 { display: block; padding-left: +20px; } @@ -25,4 +27,4 @@ sect1,sect2,sect3 { p { display: block; padding-left: +5px; -} \ No newline at end of file +}