Skip to content
This repository was archived by the owner on Apr 10, 2025. It is now read-only.
This repository was archived by the owner on Apr 10, 2025. It is now read-only.

<style scoped> is translated to <link rel="stylesheet" scoped> however there is no browser support for the latter #918

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. open source of https://www.highdefinition.ch/test.html?ModPagespeed=off
2. open source of https://www.highdefinition.ch/test.html
3. look for "scoped", compare

What is the expected output? 
<style scoped="scoped">@import url('/styles/kendo.metroblack.min.css')</style>

What do you see instead?
<link rel="stylesheet" href="/styles/kendo.metroblack.min.css" scoped="scoped"/>

<link scoped> is currently not supported by any browsers. The 
<style>@import</style> workaround has to be used. This translation of mod 
pagespeed is not only useless, it breaks the page.

What version of the product are you using (please check X-Mod-Pagespeed
header)?
X-Mod-Pagespeed: 1.7.30.4-3847

On what operating system?
Fedora 20

Which version of Apache?
Server: Apache/2.4.7 (Fedora) OpenSSL/1.0.1e-fips mod_nss/2.4.6 NSS/3.15.3 
Basic ECC PHP/5.5.10 mod_wsgi/3.4 Python/2.7.5 mod_perl/2.0.9-dev Perl/v5.18.2

Which MPM?
Whats that?

URL of broken page:
See above



Original issue reported on code.google.com by frederic...@gmail.com on 25 Mar 2014 at 3:10

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions