ConvertFrom-CssUrl
August 3, 2026 ยท View on GitHub
SYNOPSIS
Extracts URL references from CSS declarations and imports.
SYNTAX
Content (Default)
ConvertFrom-CssUrl -Content <string> [-BaseUrl <uri>] [<CommonParameters>]
File
ConvertFrom-CssUrl -Path <string> [-BaseUrl <uri>] [<CommonParameters>]
DESCRIPTION
Extracts URL references from CSS declarations and imports.
EXAMPLES
EXAMPLE 1
ConvertFrom-CssUrl -Content '.hero { background: url(/img/hero.png); }' -BaseUrl 'https://example.org/page/'
PARAMETERS
-BaseUrl
Base URL used to resolve relative CSS URLs.
Type: Uri
Parameter Sets: Content, File
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Content
CSS content to inspect.
Type: String
Parameter Sets: Content
Aliases: None
Possible values:
Required: True
Position: named
Default value: None
Accept pipeline input: True (ByValue, ByPropertyName)
Accept wildcard characters: False
-Path
Path to a CSS file.
Type: String
Parameter Sets: File
Aliases: File
Possible values:
Required: True
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
System.String
OUTPUTS
HtmlTinkerX.HtmlCssUrlReference
RELATED LINKS
- None