diff --git a/LICENSE b/LICENSE index 1c2c3112..686a4e31 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2011 Raphael Schweikert, http://sabberworm.com/ +Copyright (c) 2011 Raphael Schweikert, https://www.sabberworm.com/ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 5a739c0b..28531002 100644 --- a/README.md +++ b/README.md @@ -617,7 +617,7 @@ class Sabberworm\CSS\CSSList\Document#4 (2) { * [Lullabot](https://github.com/Lullabot) for a patch that allows to know the line number for each parsed token. * [ju1ius](https://github.com/ju1ius) for the specificity parsing code and the ability to expand/compact shorthand properties. * [ossinkine](https://github.com/ossinkine) for a 150 time performance boost. -* [GaryJones](https://github.com/GaryJones) for lots of input and [http://css-specificity.info/](http://css-specificity.info/). +* [GaryJones](https://github.com/GaryJones) for lots of input and [https://css-specificity.info/](https://css-specificity.info/). * [docteurklein](https://github.com/docteurklein) for output formatting and `CSSList->remove()` inspiration. * [nicolopignatelli](https://github.com/nicolopignatelli) for PSR-0 compatibility. * [diegoembarcadero](https://github.com/diegoembarcadero) for keyframe at-rule parsing. diff --git a/composer.json b/composer.json index 837a30b7..6f162ab9 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "type": "library", "description": "Parser for CSS Files written in PHP", "keywords": ["parser", "css", "stylesheet"], - "homepage": "http://www.sabberworm.com/blog/2010/6/10/php-css-parser", + "homepage": "https://www.sabberworm.com/blog/2010/6/10/php-css-parser", "license": "MIT", "authors": [ {"name": "Raphael Schweikert"} diff --git a/phpunit.xml b/phpunit.xml index f453d524..1a59ea4e 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,6 +1,6 @@ diff --git a/tests/Sabberworm/CSS/ParserTest.php b/tests/Sabberworm/CSS/ParserTest.php index 4094a8f6..40c6da1b 100644 --- a/tests/Sabberworm/CSS/ParserTest.php +++ b/tests/Sabberworm/CSS/ParserTest.php @@ -188,8 +188,8 @@ function testManipulation() to {top: 200px;}} @supports ( (perspective: 10px) or (-moz-perspective: 10px) or (-webkit-perspective: 10px) or (-ms-perspective: 10px) or (-o-perspective: 10px) ) {body {font-family: "Helvetica";}} @page :pseudo-class {margin: 2in;} -@-moz-document url(http://www.w3.org/), - url-prefix(http://www.w3.org/Style/), +@-moz-document url(https://www.w3.org/), + url-prefix(https://www.w3.org/Style/), domain(mozilla.org), regexp("https:.*") {body {color: purple;background: yellow;}} @media screen and (orientation: landscape) {@-ms-viewport {width: 1024px;height: 768px;}} @@ -209,8 +209,8 @@ function testManipulation() to {top: 200px;}} @supports ( (perspective: 10px) or (-moz-perspective: 10px) or (-webkit-perspective: 10px) or (-ms-perspective: 10px) or (-o-perspective: 10px) ) {#my_id body {font-family: "Helvetica";}} @page :pseudo-class {margin: 2in;} -@-moz-document url(http://www.w3.org/), - url-prefix(http://www.w3.org/Style/), +@-moz-document url(https://www.w3.org/), + url-prefix(https://www.w3.org/Style/), domain(mozilla.org), regexp("https:.*") {#my_id body {color: purple;background: yellow;}} @media screen and (orientation: landscape) {@-ms-viewport {width: 1024px;height: 768px;}} @@ -416,8 +416,8 @@ function testComments() function testUrlInFile() { $oDoc = $this->parsedStructureForFile('url', Settings::create()->withMultibyteSupport(true)); - $sExpected = 'body {background: #fff url("http://somesite.com/images/someimage.gif") repeat top center;} -body {background-url: url("http://somesite.com/images/someimage.gif");}'; + $sExpected = 'body {background: #fff url("https://somesite.com/images/someimage.gif") repeat top center;} +body {background-url: url("https://somesite.com/images/someimage.gif");}'; $this->assertSame($sExpected, $oDoc->render()); } @@ -553,8 +553,8 @@ function testCalcFailure() function testUrlInFileMbOff() { $oDoc = $this->parsedStructureForFile('url', Settings::create()->withMultibyteSupport(false)); - $sExpected = 'body {background: #fff url("http://somesite.com/images/someimage.gif") repeat top center;} -body {background-url: url("http://somesite.com/images/someimage.gif");}'; + $sExpected = 'body {background: #fff url("https://somesite.com/images/someimage.gif") repeat top center;} +body {background-url: url("https://somesite.com/images/someimage.gif");}'; $this->assertSame($sExpected, $oDoc->render()); } diff --git a/tests/files/atrules.css b/tests/files/atrules.css index e375401e..58b27c1f 100644 --- a/tests/files/atrules.css +++ b/tests/files/atrules.css @@ -29,17 +29,17 @@ html, body { margin:2in; } -@-moz-document url(http://www.w3.org/), - url-prefix(http://www.w3.org/Style/), +@-moz-document url(https://www.w3.org/), + url-prefix(https://www.w3.org/Style/), domain(mozilla.org), regexp("https:.*") { /* CSS rules here apply to: - + The page "http://www.w3.org/". - + Any page whose URL begins with "http://www.w3.org/Style/" + + The page "https://www.w3.org/". + + Any page whose URL begins with "https://www.w3.org/Style/" + Any page whose URL's host is "mozilla.org" or ends with ".mozilla.org" + Any page whose URL starts with "https:" */ - + /* make the above-mentioned pages really ugly */ body { color: purple; background: yellow; } } diff --git a/tests/files/line-numbers.css b/tests/files/line-numbers.css index 73d3189f..6c27f489 100644 --- a/tests/files/line-numbers.css +++ b/tests/files/line-numbers.css @@ -4,7 +4,7 @@ @font-face { /* line 5 */ font-family: "CrassRoots"; - src: url("http://example.com/media/cr.ttf") /* line 7 */ + src: url("https://example.com/media/cr.ttf") /* line 7 */ } @@ -23,7 +23,7 @@ @IMPORT uRL(test.css); /* line 23 */ body { - background: #FFFFFF url("http://somesite.com/images/someimage.gif") repeat top center; /* line 25 */ + background: #FFFFFF url("https://somesite.com/images/someimage.gif") repeat top center; /* line 25 */ color: rgb( /* line 27 */ 233, /* line 28 */ 100, /* line 29 */ diff --git a/tests/files/namespaces.css b/tests/files/namespaces.css index ffd7a589..c396c974 100644 --- a/tests/files/namespaces.css +++ b/tests/files/namespaces.css @@ -1,10 +1,10 @@ -/* From the spec at http://www.w3.org/TR/css3-namespace/ */ +/* From the spec at https://www.w3.org/TR/css3-namespace/ */ @namespace toto "http://toto.example.org"; @namespace "http://example.com/foo"; -/* From an introduction at http://www.blooberry.com/indexdot/css/syntax/atrules/namespace.htm */ +/* From an introduction at https://www.blooberry.com/indexdot/css/syntax/atrules/namespace.htm */ @namespace foo url("http://www.example.com/"); @namespace foo url('http://www.example.com/'); diff --git a/tests/files/url.css b/tests/files/url.css index 1ec8deb9..93aae97f 100644 --- a/tests/files/url.css +++ b/tests/files/url.css @@ -1,4 +1,4 @@ -body { background: #FFFFFF url("http://somesite.com/images/someimage.gif") repeat top center; } +body { background: #FFFFFF url("https://somesite.com/images/someimage.gif") repeat top center; } body { - background-url: url("http://somesite.com/images/someimage.gif"); + background-url: url("https://somesite.com/images/someimage.gif"); } \ No newline at end of file